Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QTreeWidgetItemすべての aの子が非表示としてマークされていることを検出する好ましい方法はありますか? 現在、それらのいずれかが非表示になるたびに、それらすべてを繰り返し処理しています。
QTreeWidgetItem
非表示アイテムのカウンターを保持し、アイテムが非表示の状態を変更した場合はカウンターの値を変更します。したがって、情報を使用するたびに、すべてのアイテムを反復処理するわけではありません!