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

QSpinBox: clearing the value and pressing Enter should mean 0, not revert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.x, 5.5.0
    • None
    • KDE

      Especially when used for editing integers in model/view, QSpinBox should behave like users expect from spreadsheets: if you clear the text and press Enter, then you expect to see 0, not the old value re-appear.

      Testcase:
      examples/widgets/itemviews/spinboxdelegate/spinboxdelegate
      double-click in the cell that says '6'
      type Delete
      type Enter
      -> 6 reappears, unexpectedly.

        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
            dfaure_kdab David Faure
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes