[Development] QML and QAbstractListModel

Alberto Mardegan mardy at users.sourceforge.net
Sat Jan 12 12:40:26 CET 2013


On 01/10/2013 05:46 PM, Alberto Mardegan wrote:
>    I'd like to make C++ models more usable from QML; in the net there
> are several blog posts illustrating how to achieve that, but IMHO it
> would be better if at least some of these handy features were in
> QAbstractListModel itself:
>
> - "count" property
> - "get(index)" invocable method, returning a QVariantMap mapping all the
> roles to their data for the specified index

https://codereview.qt-project.org/#change,44602

Ciao,
   Alberto




More information about the Development mailing list