[Interest] What is beginInsertRows() purpose?

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Fri Aug 23 16:08:06 CEST 2013


I'm using this in Model/View classes for a while without any issue.

But... I always wondered why it is necessary to have both signals (one
before and one after) in the underlying mechanism, and what could be wrong
in doing:

-modify the model underlying data structure by inserting rows-
beginInsertRows()
endInsertRows()

Instead of the regular:
beginInsertRows()
-modify the model underlying data structure by inserting rows-
endInsertRows()


It's always better to understand why are things done how they are...

Thanks!

Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130823/0dac8a42/attachment.html>


More information about the Interest mailing list