[Interest] qt5: deprecated QAbstractItemModel::reset()

Christian Kandeler christian.kandeler at digia.com
Thu Oct 4 18:24:08 CEST 2012

On 10/04/12 18:09, Stephen Kelly wrote:
> On Thursday, October 04, 2012 16:38:42 Jan Kundrát wrote:
>> I have always assumed that the users of the model are more or less free
>> to call a "reasonable" subset of model's functions form inside slots
>> attached to modelAboutToBeReset() -- like index(), parent() and data().
> Yes, you should be able to call any const method on a model which just emitted
> modelAboutToBeReset.

Hm, I have always assumed that signal to mean "stay the hell away from 
me until I emit modelReset()", meaning that this ...

> You must not return to the event loop between
> beginResetModel and endResetModel.

... would actually be safe


More information about the Interest mailing list