View Full Version : FindItem in QTreeView with StandardItem
Mint87
1st March 2012, 21:23
Hello!
I am working with QTreeView and I have a multilevel structure. The problem is that FindItem considers only the first sub-level. How to make it search through the all levels?
Thank you!
Urthas
2nd March 2012, 02:20
Searching Google for "Qt + FindItem" gave this (https://qt-project.org/faq/answer/how_can_i_find_subitems_in_a_qtreewidget_using_fin ditems).
ChrisW67
2nd March 2012, 02:29
The problem is that FindItem considers only the first sub-level.
Neither QTreeView nor QTreeWidget has a FindItem() method.
QTreeWidget::findItems() has perfectly good options for recursive find in trees.
Mint87
6th March 2012, 09:44
Hallo, thank you for your help.
I have solved this problem with QMap iterator.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.