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

QSpinBox::editingFinished() fired if Esc has been pressed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.13.2
    • None
    • Windows

      The problem 1: QSpinBox::editingFinished() signal gets fired even if a user cancels editing via ESC button.

      The problem 2 here (even worse than 1st one) that in a slot connected to the signal the "wrong" (cancelled) value is still accessible via QSpinBox::value().

      i.e. when the value in the QSpinBox was 42, and the user started by typing 13 but then pressed ESC, QSpinBox visually returns to 42, BUT editingFinished() will be fired and in the slot, 13 will be read instead via QSpinBox::value() .

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ars.masiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes