[SailfishDevel] Technical question: populating ListModel from C++

Kimmo Lindholm Kimmo.Lindholm at eke.fi
Fri May 23 06:52:57 UTC 2014


Hi,,

Thank you Janne and Jarko, I will take a look on both of these approaches;

> use the QSqlQueryModel in your c++ and expose that to QML ; just like in : http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML


> subclassing QAbstractItemModel. See http://qt-project.org/doc/qt-5/qtquick-modelviewsdata-cppmodels.html and http://qt-project.org/doc/qt-5/qabstractitemmodel.html to get started.


-kimmo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140523/28af22b7/attachment.html>


More information about the Devel mailing list