I fill my QTreeWidget out of a thread. Works well so far, but after he data is populated, all items are not expanded but they are available. All items I added I set ...setExpanded(true);
This cause at the end the problem, that treeCount()
is 1.
I want to avoid to set in constructer expandAll
and I also want to avoid to make an extra List to count the items.
If I start the fill method from common app thread as a simple function, everything I ...setExpanded(true);
is expanded after populate.
I there a trick to avoid this problem?