Results 1 to 8 of 8

Thread: diffrend kind of lists of GUI

  1. #1
    Join Date
    Sep 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default diffrend kind of lists of GUI

    Hello there,

    I'm new in QT. I'm referencing to Qt 4.6.
    I want to do a list of tasks to display (download manager app) and I'm not sure which one to use.

    Row of the list would be containing Strings, Icon, Progressbar and button. Selecting multiple rows is needed also. I need labeled tabs, so as i understood QListView is not an option. I read the manual, but still don't know which one is best for me.

    I choosed QTreeWidget. Is it the really the best option? Rows won't expand.

    Can someone explain diffrences between QTreeWidget and QTreeView(in general widget and view list diff)?

    As I understand QListView is for single list but without labels of columns(why?), QTreeView if for expandable items like file system explorer in Win, but also can be used for not expandable, ant QTableView is mostly for spreadsheets. Am I right or missing something?

    Thanks in advance for all responses.

  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: diffrend kind of lists of GUI

    I would go for a QTabelView since then your progress bars, labels etc. are aligned in the right way. For customizations use a custom item delegate.

    EDIT: But your QTreeView is also fine but if you won't expand the rows, you choose a widget with special options without using it. That is kind of waste resources.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: diffrend kind of lists of GUI

    I prefer to use QTreeView instead of QTableView most of the times as according to me it looks a bit better.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Sep 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: diffrend kind of lists of GUI

    Still not clear to me:
    Quote Originally Posted by tomixer View Post
    Can someone explain diffrences between QTreeWidget and QTreeView(in general widget and view list diff)?

    As I understand QListView is for single list but without labels of columns(why?), QTreeView if for expandable items like file system explorer in Win, but also can be used for not expandable, ant QTableView is mostly for spreadsheets. Am I right or missing something?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: diffrend kind of lists of GUI

    Is there something specific which is not clear? Because for general answer I can only redirect you to the documentation: QTreeView vs QTreeWidget.

    As I understand QListView is for single list but without labels of columns(why?)
    If there is one column, there is no point in labeling it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Mar 2010
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: diffrend kind of lists of GUI

    Quote Originally Posted by tomixer View Post
    Can someone explain diffrences between QTreeWidget and QTreeView(in general widget and view list diff)?
    The difference consists in the model/view architecture.
    Model/View Programming

  7. #7
    Join Date
    Sep 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: diffrend kind of lists of GUI

    Is there possibility to do more columns in QListView? If not lack of labeling is clear.

    Most interesting for me is what are main practical appliances for qtreelist and qtreewidget. Little explanation why wold be very helpful also.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: diffrend kind of lists of GUI

    Quote Originally Posted by tomixer View Post
    Is there possibility to do more columns in QListView?
    No. QListView is by definition a one-column view.

    Most interesting for me is what are main practical appliances for qtreelist and qtreewidget. Little explanation why wold be very helpful also.
    Come on, man. Read the docs.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt Creator What kind of license I can select about Qt Creator ?
    By kichi in forum Qt Tools
    Replies: 8
    Last Post: 8th April 2010, 04:55
  2. Replies: 2
    Last Post: 9th March 2010, 12:48
  3. How to code this kind of UI?
    By stephenteh in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 23rd September 2009, 11:31
  4. qmake outputting wrong kind of makefile...
    By andy.fillebrown in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2009, 16:37
  5. Resizing any kind of widget runtime
    By vajindarladdad in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2008, 16:02

Tags for this Thread

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.