Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.6.0
-
None
-
Windows 7, Using Qt 5.6 / Visual Studio 2015
Description
I have a scenario where I use a GridView with a delegate Button component with a custom background property. Once I run the application and scroll through the grid I receive several errors in my output and an equivalent number of blank spaces in the grid itself. As soon as I remove my custom background, everything works great. This occurs on both desktop and embedded builds.
The error output is: <Unknown File>: QML VisualDataModel: Error creating delegate
The main.qml code is as follows:
import QtQuick 2.6 import Qt.labs.controls 1.0 ApplicationWindow { visible: true width: 640 height: 480 GridView { id: gridThing; anchors.fill: parent; cellWidth: 75; cellHeight: 75; model: 500; delegate: Button { id: control text: "Test" width: gridThing.cellWidth; height: gridThing.cellHeight; background: Rectangle { implicitHeight: 20; implicitWidth: 20; color: "red"; width: control.width; height: control.height; x: 0; y: 0; } } } }
I also see the same problem when I use a ListView
Attachments
Issue Links
- duplicates
-
QTBUG-50992 QQC2: Object destroyed during incubation
- Closed
- relates to
-
QTBUG-52955 Regression: ItemDelegate with overriden contentItem in ListView fails to create on Android
- Closed
-
QTBUG-53496 Customized Qt.labs ComboBox won't display in an asynchronous Loader
- Closed
For Gerrit Dashboard: QTBUG-52096 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
161723,2 | WIP: Ugly workaround for "Object destroyed during incubation" issues | 5.7 | qt/qtquickcontrols2 | Status: ABANDONED | -2 | 0 |
162519,3 | WIP: Cancel incubation of replaced delegates | 5.7 | qt/qtquickcontrols2 | Status: DEFERRED | -2 | 0 |
162520,3 | WIP: Allow canceling incubation | 5.7 | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |