×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Customize Listview in Qt

    HI,

    Customizing the listview using delegates a sample example is provided here,

    http://qt-articles.blogspot.com/2010...-qt-using.html

    have a look at it once.

  2. #2
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Customize Listview in Qt using delegates

    Sample example of how to use delegates in Qt listview is given here

    http://qt-articles.blogspot.com/2010...-qt-using.html

    have a look at this, i hope it will be helpfull..

  3. #3
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: Customize Listview in Qt using delegates

    I have tried this example but I am a little bit confused in the following points:

    Code:
    SubFont.setWeight(SubFont.weight() -2 );
    It has no effect, font does not changes, only the first line goes in bold. What is the best way to change the font size for the second line ?

    Moreover, sizeHint() function is returning:

    Code:
    return(QSize(iconsize.width(),iconsize.height()+fm.height() + 8));
    I could not understand this magic number (8). Worst, it need to be bigger for a better presentation in Win7 (12). What is the best way to calculate the size without magic numbers ?

    For single lines we can use CSS styles. No option based on CSS for items using two lines ?

Similar Threads

  1. qt listview problems
    By kasperc in forum Nokia N9
    Replies: 2
    Last Post: 2010-04-28, 21:02
  2. Only Numeric field in ListView
    By swarupk2007 in forum Symbian User Interface
    Replies: 6
    Last Post: 2010-01-11, 11:38
  3. set background color in ListView
    By royalsnn in forum Symbian
    Replies: 4
    Last Post: 2009-11-12, 11:42
  4. WRTKit ListView issues...
    By sk272 in forum Symbian
    Replies: 0
    Last Post: 2009-11-02, 14:38
  5. How to Disable Command Button and list item on Listview for S40 devices
    By iworktech_kiran in forum Mobile Java General
    Replies: 3
    Last Post: 2008-08-29, 17:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×