Check out this article from FN wiki:
http://wiki.forum.nokia.com/index.php/Using_QStandardItemModel_in_QML

I'm gladly using RoleItemModel in my application. It's really easy to setup and use.

/matti

20.5.2011 12:16, vineeth kirjoitti:
Hello all,
I am a newbie and had a doubt related to QML ListView model. In this example : http://doc.qt.nokia.com/4.7/declarative-modelviews-stringlistmodel.html , a C++ QStringList is being used as a model in the view.qml file <http://doc.qt.nokia.com/4.7/declarative-modelviews-stringlistmodel-view-qml.html>. However, If I add an item to this QStringList ( For ex: In response to a UI click event ), the newly added items to the QStringList are not reflected in the UI ListView. How can we ensure that the QStringList elements are in sync with the QML ListView. Kindly let me know.

Thanks.
--vineeth


_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to