Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. <Unknown File>: QML VisualDataModel: Error creating delegate
Forum Updated to NodeBB v4.3 + New Features

<Unknown File>: QML VisualDataModel: Error creating delegate

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Interima.x2
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jech
      wrote on last edited by
      #2

      I'm getting the same error, but it is quite random here. I couldn't determine when exactly it is raised. Did you find any solution?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Muhammad
        wrote on last edited by
        #3

        I got the same error too, when using a ListView inside a ListView, Any updates?

        I don't have endpoint, I just have Checkpoints.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved