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

SpinBox resets to "from" value when loses focus

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.1
    • 5.6.0 RC
    • Quick: Controls 2
    • None
    • f066fce2bb2aba6b94b44008877ac8e03b5b1f82

    Description

      Button {
          id:but1
      }
      SpinBox {
          focus: true
          KeyNavigation.backtab: but1
          KeyNavigation.tab: but2
          KeyNavigation.left: but1
          KeyNavigation.right: but2
          from: 10
          to: 1000
          value: 100
          onValueChanged: but1.text = "aa " + value
      }
      Button {
          id:but2
      }
      

      Steps to reproduce:

      • change the sinbox value
      • press tab|backtab|left|right hey
        Spingbox will reset the value to 10 ("from" value).
      • same thing happens if you just press on any button

      :/qtlabscontrols.conf
      [Controls]
      Style=Material

      [Material]
      Theme=Dark
      Accent=Teal
      Primary=BlueGrey

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            taipan BogDan Vatra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes