Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

how to avoid a QTreeView -"setUpdatesEnabled(false)" from erasing itself before restore with "setUpdatesEnabled(true)"

$
0
0
I use a QTreeView with QStandartItemModel,I trigger a Dlg that will change the QStandartItemModel underling structure. So I need temporarily prevent view to update which in turn call QStandartItemModel ‘s index() or sth need to read data from the underling the structure . But when I call QTreeView -“setUpdatesEnabled(false)” before the DLg.exec(). the View is erased? how can I stop view to update but not erase it? Regards!

Viewing all articles
Browse latest Browse all 13965

Trending Articles