Re: [Interest] [Qt-4.8] Subclassing QAbstractItemModel

2013-02-09 Thread Christian Quast
Hi, thanks for the fast and thorough reply. On Samstag 09 Februar 2013 17:35:38 Иван Комиссаров wrote: > Are you using QTreeView? It is quite slow and yes, it has quite a lot of > repaints. However, in worst case, only viewport is repainted (i.e. only > indexes that are visible at the moment). Bu

Re: [Interest] [Qt-4.8] Subclassing QAbstractItemModel

2013-02-09 Thread Иван Комиссаров
Are you using QTreeView? It is quite slow and yes, it has quite a lot of repaints. However, in worst case, only viewport is repainted (i.e. only indexes that are visible at the moment). But, view might need to know additional information about other (invisible at the current moment) indexes - fo

[Interest] [Qt-4.8] Subclassing QAbstractItemModel

2013-02-09 Thread Christian Quast
Dear All, I currently get to know the Qt Model/View classes. So I went on and created a subclass of QAbstractItemModel to provide the data for the different views in Qt. As my structure is tree like, I followed the SimpleTreeModel example that comes with Qt. At first, I had some problems imple