Hi,
I have a QTreeView with read-only custom model derived from QAbstractItemModel. On Double-clicking the TreeItem, I am calling setExpanded(index,false) in order to wait till the parent node gets populated and calling setExpanded(index,true) once all the data is arrived.
The above scenario works perfectly.But when I try to click the expander/collapsible icon (while the expanded state of the tree item state is still false), the parent node expands and shows the child nodes irrespective of the state.
I want to disable this icon (or) try to get a signal on this icon click so that my tree-view will expand only after all the data population done.
Please help on this as this is affecting my UI performance in case of huge data
Bookmarks