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

Tumbler's currentIndex is not the same as the initial value

    XMLWordPrintable

Details

    • Linux/Wayland
    • 6b440f5a0 (dev), 48e085156 (6.8), 109e817e4 (6.7), dd8504faa (tqtc/lts-6.5)

    Description

      The initial value of Tumbler's currentIndex is not correct.

      Steps to Reproduce:

      Run the following snippet example.

       

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      ApplicationWindow {
          id: root
          width: 200
          height: 300
          visible: true
      
          Tumbler {
              id: hoursTumbler
              model: 6
              currentIndex: 1
              wrap: false
          }
      } 

       

      EXPECT:

       

      The Tumbler current value should be 1 when the code is running.

       

      ACTUAL:

      The current is number 3 (not expected)

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-127315
          # Subject Branch Project Status CR V

          Activity

            People

              mhqanbari MohammadHossein Qanbari
              mhqanbari MohammadHossein Qanbari
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes