Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.8.4, 5.0.0
Description
Picture the following:
ListView {
id: app
header: Rectangle {
....
onColorChanged:
}
model: ColorModel
{ filter: app.color }}
Assume ColorModel is a C++ model that emits modelReset when filter is set.
When header's color changes, it'll set app.color, which will change the bound filter and emit modelReset.
This will then trigger delegates to start creating, but wait! It will also call QDeclarativeListViewPrivate::regenerate (due to a signal connection on modelReset), which calls QDeclarativeListViewPrivate::updateHeader to recreate the header, which subsequently crashes due to QML already creating components.