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

: QML VisualDataModel: Error creating delegate

$
0
0
Some problem with listview navigation. Qt 5.0.0 ListView {    id: translationsList;    width: item.width;    height: 260;    model: translationInfoModel;    orientation: ListView.Horizontal;    snapMode: ListView.SnapToItem;    //highlightRangeMode: ListView.StrictlyEnforceRange;     spacing: 30;     clip: true;     delegate:                   TranslationInfo                   {                       fontSize: optionTabContent.fontSize;                       fontFamily: optionTabContent.fontFamily;                       width: translationsList.width;                       height: translationsList.height;                    }      highlightFollowsCurrentItem: true; } MouseArea {    id: nextMA;    onClicked: {                         translationsList.incrementCurrentIndex();                         console.log(translationsList.currentIndex);                     }     anchors.fill: parent; } in some case translationsList.incrementCurrentIndex() raise error – <Unknown File>: QML VisualDataModel: Error creating delegate But when choose any listview item simply(by mouse) there is no errors. Increment index manually also raise same error. Is this a bug?

Viewing all articles
Browse latest Browse all 4972

Trending Articles