Bug 70579

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

Description From 2011-10-20 21:25:50 PST
Created an attachment (id=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 From 2011-10-20 21:35:05 PST -------
Created an attachment (id=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 From 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.