Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.10.1
-
None
Description
I'm not sure if this is a bug or not, but it certainly surprised me.
When changing my model and emitting the `dataChanged` signal, the only way I could get the delegate in the QML list view to update was remove the specific roles from the `dataChanged` method call.
To reproduce: Run the attached example, click a color box, drag the crosshairs on the dialog to change the color, and select OK will change the model. The QML delegate will not update.
If you change line 48 of the attached `photomodel.cpp` to emit `dataChanged` with just the indexes, the QML delegate will update as the underlying model changes as expected.
Attachments
Issue Links
- resulted in
-
QTBUG-68201 Expose ItemDataRole enum to QML
- Reported