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

Custom cursor is not restored when dismissing a context menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.1, 5.7.0, 5.15
    • None
    • OS X 10.11.6
    • macOS

    Description

      Happens on OS X, but not Windows.

      1. Hover mouse over a QLineEdit (notice I-beam cursor)
      2. Right-click to bring up context menu (at this point, the cursor usually switches to the regular arrow cursor, although not always)
      3. Take extra-special care to not move the mouse over the context menu
      4. Hit [esc] to dismiss context menu
      => Cursor remains as the arrow cursor! It should switch back to the I-beam cursor. It won't switch back to the I-beam cursor until you mouse away from the widget and back on.

      This happens with any widget that sets a cursor – e.g., spin boxes, date time fields, as well as any user-made widget that sets a cursor.

      Attachments

        Issue Links

          Activity

            People

              sorvig Morten Sørvig
              branewave Paul Sturm
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: