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:
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.
|For Gerrit Dashboard: QTBUG-86708|
|339086,6||DelegateModelGroup: Fix bug where item could be removed from the model||dev||qt/qtdeclarative||Status: MERGED||+2||0|
|340096,4||DelegateModelGroup: Fix bug where item could be removed from the model||tqtc/lts-5.15||qt/tqtc-qtdeclarative||Status: MERGED||+2||0|
|341060,2||DelegateModelGroup: Fix bug where item could be removed from the model||6.1||qt/qtdeclarative||Status: MERGED||+2||0|
|341061,3||DelegateModelGroup: Fix bug where item could be removed from the model||6.0||qt/qtdeclarative||Status: MERGED||+2||0|