- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
P2: Important
 - 
    None
 - 
    5.7.0 Beta
 - 
    None
 - 
    Android 4.4.4, 5.1, 6.0
 
If I use ItemDelegate with custom contentItem as a delegate in ListView, on scrolling creating some items fail on Android (on Linux it works fine). I also see the following errors:
:-1 ((null)): <Unknown File>: QML VisualDataModel: Error creating delegate
If I import QtQml.Models, error mention DelegateModel instead of VisualDataModel.
Test program:
import QtQuick 2.6 import QtQuick.Controls 2.0 ApplicationWindow { visible: true width: 640 height: 480 ListView { anchors.fill: parent model: 10000 delegate: ItemDelegate { contentItem: Label { text: "Item " + model.index } } } }
To reproduce, just scroll the list.
I don't see such errors on Qt 5.6.
- duplicates
 - 
                    
QTBUG-50992 QQC2: Object destroyed during incubation
-         
 - Closed
 
 -         
 
- relates to
 - 
                    
QTBUG-52096 Qt Quick Controls 2 Button fails creation in GridView
-         
 - Closed
 
 -         
 - 
                    
QTBUG-53496 Customized Qt.labs ComboBox won't display in an asynchronous Loader
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTBUG-52955 | ||||||
|---|---|---|---|---|---|---|
| # | 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 |