I now understand why, in the QML, writing in the grid delegate:
onClicked: myProperty = newValue
does not work: it’s because myProperty, exposed to QML, is actually a role, not the real property…that’s why I should explicitly use the setter for that property. I’ll see if I can do anything with the Qt::EditRole token…
Edit: I have overridden QAbstractListIModel::setData with my own implementation and… voilà! Everything working like a charme! There had to be a way ;)
↧









