Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.1
-
-
Bug Fixing Candidates
Description
When using DelegateModelGroup to group items then when a created item which is set to not be included will trigger an assert. In the case of the example which is set up to have a DelegateModelGroup with a custom name (selected) and that is set to be included by default. Then when the items are added to that group on creation, then when it hits the delegate's onCompleted handler and it sets the DelegateModel.inSelected to false it will trigger the assert:
ASSERT: "index >=0 && index < count(group)" in file /Users/andy/dev/qt5.15/qtdeclarative/src/qmlmodels/qqmllistcompositor.cpp, line 365
If this is bypassed (in release mode) then when you replace one model with the other (as the example does when you press a key) then it does not remove all the entries in the list as a result. But I suspect that problem is connected to the fact that it is asserting before, so fixing that should solve this one.
Attachments
Issue Links
- relates to
-
QTBUG-85973 Filtered item still visible in ListView in case of DelegateModelGroup
-
- Closed
-
-
QTBUG-86567 When destroying an item in a model that has an animation running as part of its delegate then it can cause a crash to occur
-
- Closed
-