Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

initialize error of ComboBox : Cannot read property 'constructor' of undefined

$
0
0
When I try to initialize the model of ComboBox, weird error pop out import QtQuick 2.2 import QtQuick.Controls 1.1   Rectangle {     width: 100     height: 62       ListModel{         id: modelA     }       ComboBox{         model: modelA     }       Component.onCompleted: {         modelA.append({"source" : "hhhh"})     } } error message file:///C:/Qt/Qt5.2.0/5.2.0/mingw48_32/qml/QtQuick/Controls/ComboBox.qml:496: TypeError: Cannot read property ‘constructor’ of undefined How could I fix this error?

Viewing all articles
Browse latest Browse all 4972

Trending Articles