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

Add textEdited signal to SpinBox

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.0
    • None
    • Quick: Controls 2
    • None
    • ce85cb161 (dev)

    Description

      I'm implementing a live preview, where edits made to a SpinBox should update some backend values instantly. Unfortunately this doesn't work for SpinBox, whose only modification signal is emitted when e.g. enter is pressed. Using valueChanged as a workaround is not possible, as it's not emitted until the value is accepted, and same with displayText. There's no editText to use either (as seen in e.g. ComboBox). So it seems the only workaround is to have a Binding to the contentItem's textEdited signal. However, even despite that only being a workaround, it also has its own issues:

      QTBUG-64151

      To avoid having to use valueFromText, having an editText property would help too.

      Attachments

        Issue Links

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

          Activity

            People

              matthias_rauter Matthias Rauter
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes