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

QSpinBox::editingFinished should not fire when contents haven’t changed

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.3
    • None

    Description

      QLineEdit::editingFinished is documented as

      This signal is emitted when the Return or Enter key is used, or if the line edit loses focus and its contents have changed since the last time this signal was emitted.

      (Emphasis mine)

      QSpinBox::editingFinished (and promoted QAbstractSpinBox::editingFinished new in Qt 6.10) on the other hand is emitted regardless of the value changing.

      So, it’s working “as designed” but imho they should behave the same. Typing into a SpinBox is identical from a user’s POV to typing into a TextField.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            basyskom-broulik Kai Uwe Broulik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes