[Interest] QAbstractItemModel::layoutAboutToBeChanged

Dmitry Volosnykh dmitry.volosnykh at gmail.com
Thu Mar 24 05:56:55 CET 2016


Bill, for example, you may have sorted rows. In this case all items are
still up to date, but they are rearranged visually. So, the view may do
some optimisations upon rendering this case, since the only thing it needs
is to reposition old items without the need to re-read theirs data.

On Thu, Mar 24, 2016 at 2:44 AM Bill Crocker <william.crocker at analog.com>
wrote:

> Gang:
>
> The doc for QAbstractItemModel::layoutAboutToBeChanged() says...
>
>      This signal is emitted just before the layout of a model is changed.
>      Components connected to this signal use it to adapt to changes in the
> model's layout.
>
> What is the "layout of a model" and how does that differ from
> adding and removing rows and columns.
>
> Thanks.
>
> Bill
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160324/eb5ddf8e/attachment.html>


More information about the Interest mailing list