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

Editable SpinBox's valueModified() signal not emitted when text changed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.10.0 Beta 3
    • 5.9.2
    • Quick: Controls 2
    • None
    • 990862b162111d0002e38bc270aec48bb706d9fb

    Description

      Pressing the up and down buttons works but pressing enter or switching focus after editing text doesn't:

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 585
          height: 113
          title: qsTr("test")
      
          SpinBox {
              from: 1
              to: 5120
              editable: true
              stepSize: 1
      
              onValueModified: print("modified")
          }
      }
      

      Seems like it should be working based on this code:

      http://code.qt.io/cgit/qt/qtquickcontrols2.git/tree/src/quicktemplates2/qquickspinbox.cpp#n848

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes