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

QSpinBox cursor problem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.6, 5.0.0 Alpha
    • 4.6.3, 4.7.4, 4.8.5
    • None
    • Windows XP
      Windows 7 64-bit Enterprise

    Description

      Changing the value of the QSpinBox by pressing the arrow or the keyboard, causes the cursor to jump from the right side of the number to the left side, and vice versa. This is not very nice.
      One can get around this problem by connecting the valueChanged signal to a slot, in which one clears the focus of the spinBox and then resets the focus again. However this induces other uncomely behaviour, namely that when clicking on the arrow, the activated-state is not shown anymore, and keeping the arrow clicked doesn't result in a continuously in-/decreasing value (which still works with the keyboard).
      Attached is a small example demonstrating this problem, included is also the commented-out workaround.

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            mawiesma Martin Wiesmann (closed Nokia identity) (Inactive)
            Votes:
            15 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes