I have a QStandardItemModel
with some manually implemented "select all" functionality. This loops through and updates the data for all items (or certain items—there's a filter involved). The problem is that I have some slots connected to the model's dataChanged
signal, and I don't want them called every step of the way when the user does a "select all" and the model contains thousands of entries.
Is there any way to set multiple items all at once in the model, and have dataChanged
emitted only once for the whole change?
Thanks for any ideas!