Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.3
-
None
Description
In my program, I need to build the ListView with the dynamic delegates. Before the DelegateChooser, I used Loaders, but when DelegateChooser was introduced I thought it might be a cleaner way to accomplish my goals. But now I bumped into this problem and can't figure out whether it is correct behavior or it is a bug. So the situation is:
When item in the model of the DelegateModel is changing its role value, the DelegateChooser do not get notified about it. So the ListView is not triggering re-rendering and nothing changes except bindings the Delegate (which is notified correctly). Also, when the delegate is out of ListView's cache and destroyed, it is correctly processed with the DelegateChooser when it comes back and renders the needed delegate.
See attached QT project and GIF
Attachments
Issue Links
- is duplicated by
-
QTBUG-97579 When using DelegateChooser with a TreeView and then doing a sort on the model in a TreeView, the items are not correctly updated to reflect the chooser
- Closed
- is required for
-
QTBUG-98101 DelegateChooser / DelegateChoice: graduate from Qt.labs
- Open
- relates to
-
QTBUG-78297 DelegateModel + DelegateChoice = produce unexpected delegate
- Closed