Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.2
-
None
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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-136546 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
645128,4 | Unset the cursor on QEvent::leave event | dev | qt/qtwebengine | Status: NEW | 0 | 0 |