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

QWebEngineView cursor does not reset on leaveEvent when AA_NativeWindows is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2
    • WebEngine
    • None
    • Windows

    Description

      When a QWebEngineView is embedded within standard QWidget layouts, and the QApplication attribute Qt::AA_NativeWindows is set, the mouse cursor displayed while hovering over the QWebEngineView often fails to reset correctly when the mouse pointer leaves the view's boundaries. The cursor associated with the web view persists when the mouse moves onto adjacent areas.

      Steps to Reproduce:
      Build and run the attached example (main.cpp, CMakeLists.txt).
      Move the mouse pointer over the QWebEngineView area displaying "Blah blah blah". Note the cursor shape changes to IBeam over the text
      Move the mouse pointer left or up outside the QWebEngineView bounds onto the surrounding grey area
      Observe: The mouse cursor displayed over the QWebEngineView incorrectly persists, instead of updating to the standard arrow expected for the underlying QWidget.

      Workaround:
      A functional workaround involves subclassing QWebEngineView and forcing a cursor reset on the top-level window's handle within the leaveEvent

      Attachments

        1. CMakeLists.txt
          0.3 kB
        2. main.cpp
          1 kB
        For Gerrit Dashboard: QTBUG-136546
        # Subject Branch Project Status CR V

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            noah Noah Hamerslough
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change