Results 1 to 2 of 2

Thread: QTableView vs QTreeView

  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTableView vs QTreeView

    I am having a problem with displaying data from my model in QTreeView.
    QTreeView/QListView seems to fetch data before it is displayed, while QTableView requests for data only when i it visible.
    My problem is I request data from another application and have coded data request in model such that the request to other application is sent only once. Now in QTreeView request are sent before showing. When it is displayed, the items which were requested before visible are not shown since request for them has already been sent.
    I was able to find the this thread related to my problem, but not much of solution to what I want to know...

    Is this a feature of QTreeView or a bug ?

    Or am I missing something in the model. (I had subclassed QAbstractItemModel)

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView vs QTreeView

    I should have searched Trolltech bug tracker first...
    seems its a bug. This is the bug entry.

Similar Threads

  1. QTreeView problem scrolling to end.
    By seneca in forum Qt Programming
    Replies: 7
    Last Post: 22nd December 2015, 12:08
  2. QTreeView Fixed column & QTableView
    By jpujolf in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2008, 09:35
  3. make QTableView work as a multi-column list view
    By wesley in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2008, 14:43
  4. How to merge QTableView and QTreeView ???
    By Xaleandr in forum Newbie
    Replies: 2
    Last Post: 29th December 2007, 17:58
  5. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 13:49

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.