Results 1 to 4 of 4

Thread: Closest thing to Q3ListView in Qt4

  1. #1
    Join Date
    Sep 2010
    Posts
    5
    Qt products
    Qt4

    Default Closest thing to Q3ListView in Qt4

    Hi,
    I'm looking for w widget which will allow me to create something like this: http://www.knowdotnet.com/articles/P...ewDemoForm.jpg
    What I need are: multiple columns, checkboxes and full row select. I understand that I can do this with Q3ListView. Is there something similar in Qt4? QTableWidget and QTreeView look promising. According to this http://doc.trolltech.com/4.6/qt4-interview.html I should use QTreeView. Any advices?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Closest thing to Q3ListView in Qt4

    It does not matter if you use QTreeView or QTableView. For your need (since you don't need to expand an item) they behave same. So just took that one, which looks nicer to you.

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Closest thing to Q3ListView in Qt4

    If you want to display a 2 dimensional table: QTableWidget (most simple way to start) or a QTableView (requires more insight)
    If you want to display a 3 dimensional table: QTreeWidget (agains, very simple) or a QTreeView (again requires more insight into the model/view pattern)

  4. #4
    Join Date
    Sep 2010
    Posts
    5
    Qt products
    Qt4

    Default Re: Closest thing to Q3ListView in Qt4

    Thank you.

Similar Threads

  1. Replies: 2
    Last Post: 12th September 2012, 07:43
  2. How to use Q3Listview in Qt-4.2.1
    By grsandeep85 in forum Qt Programming
    Replies: 3
    Last Post: 17th September 2009, 07:04
  3. Q3ListView
    By grsandeep85 in forum Qt Programming
    Replies: 0
    Last Post: 31st August 2009, 12:40
  4. q3listview ellipsis
    By sreedhar in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2007, 09:42
  5. Q3ListView
    By kemp in forum Qt Programming
    Replies: 6
    Last Post: 9th October 2006, 08:58

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.