Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-124452

PositionMode enum unknown to qmlsc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.0
    • None

    Description

      The PositionMode Enum seems to be unknown:

      import QtQuick
      import QtQuick.Controls.Universal
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Test window")
      
          Tumbler {
              id: tumbler
          }
      
          Component.onCompleted: {
              tumbler.positionViewAtIndex(0, Tumbler.Center)
          }
      }
      

      runs into

      Warning: Main.qml:15:17: Could not compile binding for onCompleted: type PositionMode for argument 1 cannot be resolved [compiler]
              tumbler.positionViewAtIndex(0, Tumbler.Center)
                      ^^^^^^^^^^^^^^^^^^^
      

      .

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes