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


Christian
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to