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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-47285
          # Subject Branch Project Status CR V

          Activity

            People

              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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes