Bug 70579

Summary: [Qt] QGraphicsWebView does not pass on hover leave events to QWebPage
Product: WebKit Reporter: Josh Faust <jfaust>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: jfaust
Priority: P3 Keywords: Qt
Version: 528+ (Nightly build)   
Hardware: All   
OS: Unspecified   
Description Flags
Qt project demonstrating the problem
Patch which fixes the problem none

Description Josh Faust 2011-10-20 21:25:50 PDT
Created attachment 111898 [details]
Qt project demonstrating the problem

QGraphicsWebView silently eats hover leave events instead of passing them on to QWebPage. QWebPage also does not properly handle the Event::GraphicsSceneHoverLeave case. This means if you have something close to the edge of a page that has a hover effect (CSS or Javascript based), and you quickly mouse out of the window, it will stay hovered.

This is still the case in Qt 4.8.0-rc1, and while I have not tried against qtwebkit trunk, looking at the code it appears to still have this problem.

The attached zip file demonstrates the problem:
 * The red square, when hovered over, turns blue
 * If you very quickly mouse to the left or up out of the web view, it stays blue
 * The expect result is for the square to revert to red
Comment 1 Josh Faust 2011-10-20 21:35:05 PDT
Created attachment 111900 [details]
Patch which fixes the problem

Attached patch which fixes the problem. It's a diff against Qt 4.8.0-rc1, but a quick look at the source in qtwebkit trunk does not show a change that would fix this.
Comment 2 Jocelyn Turcotte 2014-02-03 03:19:06 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.