Qiieha
6th March 2013, 15:48
Hi guys,
i have a problem. I use a QTreeView and with a subclass of QAbstractItemModel.
It works.
A
..B
..C
....D
For filter reasons I change the root index via setRootIndex.
setRootIndex(B);
It works, but after setting the root index, the rootIndex is not shown. (rootIsDecorated is true.)
C
....D
Furthermore I'm not able to unset the filter, because my A node never gets back.
setRootIndex(A); // A is model.index(0,0);
What can I do?
thanks
i have a problem. I use a QTreeView and with a subclass of QAbstractItemModel.
It works.
A
..B
..C
....D
For filter reasons I change the root index via setRootIndex.
setRootIndex(B);
It works, but after setting the root index, the rootIndex is not shown. (rootIsDecorated is true.)
C
....D
Furthermore I'm not able to unset the filter, because my A node never gets back.
setRootIndex(A); // A is model.index(0,0);
What can I do?
thanks