Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
5.15.9
-
None
Description
QTreeWidgetItemIterator — Qt for Python
错误代码块:
it = QTreeWidgetItemIterator(treeWidget) while it: if it.text(0) == itemText: *it.setSelected(True) ++it
错误代码就像从c++文档移植过来并且没有修改完整
我认为应该是:
it = QTreeWidgetItemIterator(treeWidget) while it.value(): if it.value().text(0) == itemText: it.value().setSelected(True) it += 1