×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    QListWidget - owner drawn items

    Hello Folks,
    I am very sorry, but I have been goggling this for 2h to no avail.

    Does anyone know how to create a list, where each element draws itself using a specified drawing function?

    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QListWidget - owner drawn items

    Install your own widgets in the list and implement their draw functions?

    Though note: "If you want to display custom dynamic content or implement a custom editor widget, use QListView and subclass QItemDelegate instead."

  3. #3
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: QListWidget - owner drawn items

    Hi,
    thank you so much for talking back!

    What do you mean by this - QListWidgetItem IMHO does not have a Draw function!

    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QListWidget - owner drawn items

    You can use QListWidget::setItemWidget to set a QWidget into an item. The QWidget can have a custom draw function (though note that I've never tried it -- there could be limitations).

  5. #5
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: QListWidget - owner drawn items

    Hi,
    thanks. but I found a cheaper way: a QTableWidget

    Tam
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. Replies: 1
    Last Post: 2009-11-12, 09:43
  2. Two-line setting & Multi-selection list setting items
    By azavor in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-06-04, 19:39
  3. Listbox items with different icons
    By jas76 in forum Symbian
    Replies: 2
    Last Post: 2009-05-21, 19:34
  4. donot mark items in a markable list
    By thomasraku in forum Symbian User Interface
    Replies: 4
    Last Post: 2007-06-28, 07:44
  5. Native vs. owner drawn UI
    By m_tayseer in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-08-01, 15:12

Posting Permissions

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