Results 1 to 5 of 5

Thread: Should I use QTreeView or QTableView?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    61
    Thanks
    2
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Should I use QTreeView or QTableView?

    Hi all,

    I have an application which is written in C# and uses the Control called ListView. Please refer to the attacheded picture to see what I am talking about.

    Now I need to implement the same behaviour in Qt code, and I am trying to find the best implementation solution.

    Here comes my following questions:
    1. Should I use the Model/View framework (I haven't used this and I would take me a while to implement it, but maybe it would worth it)?
    2. Should I use the QTree* family or the QTable* one? For example, I could use a QTreeWidget and call setRootIsDecorated(false) on it.
    3. It seems easier to implement the Model Class on a QTableView than on a QTreeView. Am I right here?

    What would be the best way to go?

    Thanks in advance for any advice.

    Regards,
    Wladek
    Attached Images Attached Images
    One second is long, everything longer than two seconds is definitely too long.

Similar Threads

  1. One Model, Two Views (QTreeView and QTableView)
    By dgarrett97 in forum Newbie
    Replies: 2
    Last Post: 14th September 2009, 18:10
  2. row height in QTreeView and QTableView
    By yuriry in forum Qt Programming
    Replies: 2
    Last Post: 9th October 2008, 00:58
  3. QTreeView Fixed column & QTableView
    By jpujolf in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2008, 09:35
  4. QTableView vs QTreeView
    By aamer4yu in forum Qt Programming
    Replies: 1
    Last Post: 4th August 2008, 07:17
  5. How to merge QTableView and QTreeView ???
    By Xaleandr in forum Newbie
    Replies: 2
    Last Post: 29th December 2007, 17: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
  •  
Qt is a trademark of The Qt Company.