Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
This could be useful for the scenario where you're not in a delegate, but outside of it completely and need to set some data for a specific role. Using QTBUG-68001 as an example:
on_User_acceptedChanged: { if (_user_accepted) { var qt_index = photo_model.index(index, 0) // Old code: //photo_model.setData(qt_index, color, 1) // New code: photo_model.setData(qt_index, color, Qt.DecorationRole) _user_accepted = false } }
Attachments
Issue Links
- resulted from
-
QTBUG-68001 Emitting dataChanged from QAbstractListModel using specific roles prevents QML Delegates from updating
- Closed