Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

GridView and transitions not working

$
0
0
Ok so, I got my model to work! Wasn’t that hard after all, as this class (QAbstractListModel) is quite documented over the internet, as opposed to QQmlListProperty… Anyway, now there’s one other thing which is not working: the elements returned by my model have one read AND write property, which only works in read mode. I cannot, from QML, write to it implicitly: // Inside the GridView delegate: onClicked: favorite = !favorite; This won’t work. I have to call an invokable method (or better, a public Q_SLOT): // Inside the GridView delegate: onClicked: gridview.model.get(index).set_favorite(!favorite); Has anyone an idea why writing to properties doesn’t work? edit: also the notification doesn’t seem to work…

Viewing all articles
Browse latest Browse all 4972

Trending Articles