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

QDoubleSpinBox with suffix >1 character, backspace key handled wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.0 RC2
    • None
    • WIndows
    • All

      A QDoubleSpinBox with a suffix whose length is greater than one character and the a cursor is at the end, pressing the backspace is handled wrong as it does nothing and the cursor does not move (very frustrating). 

      In contrast, when a suffix is one character and the cursor is at the end, pressing the backspace moves to the end of double value, skipping the suffix text, ready to edit the double value as expected.

      Related: https://stackoverflow.com/questions/40756382/editing-behavior-of-backspace-key-of-qdoublespinbox

      Would appreciate a fix for the native QDoubleSpinBox so it easily scales across and entire application rather than a subclass fix.

        1. sb_spin_box_fix.diff
          1 kB
          Stephen M. Bisque
        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
            sbisque Stephen M. Bisque
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes