gboelter
14th June 2011, 11:09
Hello!
I have tried in a simple QTreeWidget, created with Qt-Designer, with
treeWidget->setCurrentItem( previous );
to jump to a specific Entry called 'Banken' in this case. It works, but after doing that all items between the old one and the new one are marked like selected.
http://qtforum.de/forum/files/treewidget_995.png
But they are not, because
QList<QTreeWidgetItem *> QTreeWidget::selectedItems () const
returns a QList where size = 1.
I have tried it with QT-4.7.3 (Linux/OpenSource). I can't try an older version because I am using some new functions from Qt-4.7.
Any ideas what's going wrong here?
Thanks in advance.
Guenther
I have tried in a simple QTreeWidget, created with Qt-Designer, with
treeWidget->setCurrentItem( previous );
to jump to a specific Entry called 'Banken' in this case. It works, but after doing that all items between the old one and the new one are marked like selected.
http://qtforum.de/forum/files/treewidget_995.png
But they are not, because
QList<QTreeWidgetItem *> QTreeWidget::selectedItems () const
returns a QList where size = 1.
I have tried it with QT-4.7.3 (Linux/OpenSource). I can't try an older version because I am using some new functions from Qt-4.7.
Any ideas what's going wrong here?
Thanks in advance.
Guenther