Hi! Either that or 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
thanks, Jarko ________________________________ From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi] Sent: Friday, May 23, 2014 9:17 AM To: devel@lists.sailfishos.org Subject: [SailfishDevel] Technical question: populating ListModel from C++ Hi All, What would be the best method to populate ListModel in QML from the C++ side? I have sqlite database, which contents I would like to put on ListView. List is changed only by user when deleting or adding entry, upon this action I would like to update sqlite and then refresh listmodel. -kimmo
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org