connect itemExpanded and itemCollapsed signal to your slotsQuestion one:
I have a QTreeWidget with items and I want to grab the collapsed/expanded but it returns a QModelIndex. So how do I grab a collapse or expand that will give me back a QTreeWidgetItem? All the post I've read about this never really answered the question!
use setItemHidden(headerItem(),true);Question two:
How do you remove the column at the top? I only have one column and I don't like seeing the 0 at the top of the column. I've searched the doc's but might be missing it or it might be something done in QTDesigner.
Bookmarks