[Qt-qml] ListView crashes with more than 256 delegate elements.
Yuvraaj Kelkar
yuvraaj at gmail.com
Wed Dec 22 03:57:16 CET 2010
I have a QML List View here:
http://code.google.com/p/qgvdial/source/browse/branches/contactsui/qml/ContactsList.qml?r=285
This list shows contacts from a model which I derive from QSqlQueryModel.
There are about 800 contacts in the table.
When I scroll down the contacts list, at the point where QML is
loading the 256th delegate, it spews the output:
"
QDeclarativeComponent: Cannot create new component instance before
completing the previous
<Unknown File>: QML VisualDataModel: Error creating delgate
qrc:/ContactsList.qml:105:13: QML Text: Binding loop detected for
property "text"
qrc:/ContactsList.qml:95:32767: QML Component: Delegate component must
be Item type.
"
And then it segfaults.
If I use qmlviewer with a test ListModel with >1000 contacts, it
works, but my code does not.
I think this may be a QML bug, but I am not sure.
Any help is appreciated.
My code is in my branch here:
http://code.google.com/p/qgvdial/source/browse/#svn%2Fbranches%2Fcontactsui
More information about the Qt-qml
mailing list