Results 1 to 2 of 2

Thread: How to add columns in QListWidget ?

  1. #1
    Join Date
    Mar 2006
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Smile How to add columns in QListWidget ?

    Hi,

    I want to add column in QListWidget/QListView, How can we achive this ?

    actually i want to accomplish output like this attachment file

    What is the best way to get this ? ( QListView/QTableView/QTreeView) or (QListWidget/QTableWidget/QTreeWidget)

    Thanks,
    **pc**
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to add columns in QListWidget ?

    QTreeView/QTreeWidget (with root decoration disabled) is the way to go. The choice between the model-based and the convenience view is yours..
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    npc (15th February 2007)

Similar Threads

  1. Replies: 13
    Last Post: 15th December 2006, 11:52
  2. QTableWidget or QListWidget
    By bpetty in forum Newbie
    Replies: 3
    Last Post: 6th December 2006, 19:40
  3. Maximize columns on QTableWidget
    By marcelrc in forum Newbie
    Replies: 1
    Last Post: 21st May 2006, 15:34
  4. keypress while editing an item in QListWidget
    By Beluvius in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 09:56
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 19:37

Bookmarks

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.