Results 1 to 7 of 7

Thread: Qt4 QTreeView vs Qt3 QListView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    31
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Qt4 QTreeView vs Qt3 QListView

    I have finally and successfully converted a 'difficult' Qt3 multi column list to a QT4 QTreeView.

    After:

    - Successfully converted all the functionality of a multi column list view, included a column containing a graph, and one with a custom pixmap added to remaining normal text and with background color content dependent.

    - Successfully obtained a very good loading speed, better then the super optimized and already fast Qt3 version.

    - Successfully used a custom model and a custom delegate to come up with the particular data to be displayed and the custom way to do it.


    I can finally say that the new QTreeView with his fellows QAbstractItemModel and QAbstractItemDelegate are... A PAIN IN THE ASS!

    My humble advice is 'do not use' unless you really need. You'll be asked to add tons of cruft to make the toy start working and, at the end, you'll get something that has the same functions of the old one but with three times the code.

    FWIK you get a real advantage ONLY if your application shows the same data in many different widget, and with different I mean different classes, not different objects.

    I really don't understand why Qt designers choose that over engineered, academic approach.

    Sorry for the rant, but I really like Qt and his API, this is the first time I hit the wall using it.

    Marco

  2. The following user says thank you to mcostalba for this useful post:

    gfunk (3rd January 2007)

Similar Threads

  1. QTreeView repaint
    By graeme in forum Qt Programming
    Replies: 17
    Last Post: 13th March 2012, 13:27
  2. Replies: 0
    Last Post: 10th November 2006, 13:46
  3. paint QTreeView item !!
    By mcenatie in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2006, 14:24
  4. QSortFilterProxyModel & QTreeView
    By Bear in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 15:04
  5. Keeping focus at bottom of QListView
    By jakamph in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2006, 14:45

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.