Results 1 to 2 of 2

Thread: How to add a custom item in a QlistWidget??

  1. #1
    Join Date
    Sep 2010
    Qt products
    Symbian S60

    Question How to add a custom item in a QlistWidget??


    I want to create a aplication for symbian, but qt it's a bit difficult against java because there's a lot of informationl
    Use know how tu use standard widgets and so on. But I don't have enough knowledge to write custom widgets.

    Well, Can anybody explain or past an example of code to create a qlistwidget with personalized rows? With some labels and a button.

    I've searched in google, but I couldn't find any information for my level.

    Thank you

  2. #2
    Join Date
    Jan 2006
    Thanked 1,005 Times in 913 Posts
    Qt products
    Unix/X11 Windows Symbian S60
    Wiki edits

    Default Re: How to add a custom item in a QlistWidget??

    A (not very sophisticated) approach is QListWidget::setItemWidget() when your list is short. For an explanation see the documentation. Also if you list is longer have a look at the model view framework of Qt.

Similar Threads

  1. Replies: 5
    Last Post: 10th August 2009, 10:50
  2. QListWidget Item
    By csvivek in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2008, 09:02
  3. QListWidget and selecting an item
    By invictus in forum Newbie
    Replies: 4
    Last Post: 19th June 2007, 11:59
  4. Reg - add item in QListWidget
    By suresh in forum Newbie
    Replies: 1
    Last Post: 1st September 2006, 17:52
  5. extract item from QListWidget
    By impeteperry in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2006, 19:41

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.