Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temporarily disable UI update of a QTableView

I have a QStandardItemModel that provides data for a QTableView and a thread that inserts data into the model.

Is it possible to temporarily stop the model from updating the table view, and enable it later?

like image 588
daisy Avatar asked Jun 22 '13 15:06

daisy


1 Answers

you can use setUpdatesEnabled(bool) in your view to dis and enable the updates; maybe blockSignals(bool) could also be interesting calling it on your model; it should prevent the view from recieving the models update signals

like image 95
Zaiborg Avatar answered Oct 09 '22 13:10

Zaiborg