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

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

XMLWordPrintable

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

      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)

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes