PDA

View Full Version : QTableView vs QTreeView



aamer4yu
4th August 2008, 07:51
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 (http://www.qtcentre.org/forum/f-qt-programming-2/t-handling-mass-data-with-qtreeviewqtableview-3849.html)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) :confused:

aamer4yu
4th August 2008, 08:17
I should have searched Trolltech bug tracker first...
seems its a bug. This (http://trolltech.com/developer/task-tracker/index_html?method=entry&id=98508) is the bug entry. ;)