[Qt-qml] QSqlQueryModel + highlight

44 views
Skip to first unread message

Tibo W

unread,
Dec 3, 2011, 2:40:03 PM12/3/11
to qt-...@qt.nokia.com
Hi,

I have a sqlModel that I export in the QML's context in order to be used in a ListView.
But it seems that adding a highlight is not working. It's working with a basic model (like the one provide in the Qt's build).
Also, there's no myListView.currentItem. Should I implement it in the sqlModel ? How can I do that ?

thanks in advance

bea...@nokia.com

unread,
Dec 5, 2011, 1:48:01 AM12/5/11
to tibo...@yahoo.com, qt-...@qt.nokia.com


Hello,

Can you explain further? The currentItem and highlight concepts are part of the views, not the models. Use the model to feed the data to the ListView, then set the ListView's highlight and currentIndex properties accordingly.

Bea

_______________________________________________
Qt-qml mailing list
Qt-...@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply all
Reply to author
Forward
0 new messages