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. Tumbler positionViewAtIndex error
Forum Updated to NodeBB v4.3 + New Features

Tumbler positionViewAtIndex error

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 226 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.
  • _ Offline
    _ Offline
    _-Peter-_
    wrote on last edited by
    #1

    Hi All,
    I'm trying to set a tumbler to an initial position using positionViewAtIndex but am getting the error "QML Tumbler: Tumbler: contentItem must contain either a PathView or a ListView" for the line

    myTumbler.positionViewAtIndex(2, Tumbler.Center)
    
    

    Very little came up when I searched apart from this which was the catalyst for positionViewAtIndex being added to tumbler. Haven't tried the work around yet.

    The kit I'm running is Qt 5.12.2 MinGW 32-bit and the Qt module QtQuick.Controls 2.5

    Appreciate any help!

    1 Reply Last reply
    0

    • Login

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