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

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

    XMLWordPrintable

Details

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

    Description

      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() .

      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
            ars.masiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes