Bug 70579 - [Qt] QGraphicsWebView does not pass on hover leave events to QWebPage
Summary: [Qt] QGraphicsWebView does not pass on hover leave events to QWebPage
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P3 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2011-10-20 21:25 PDT by Josh Faust
Modified: 2014-02-03 03:19 PST (History)
1 user (show)

See Also:


Attachments
Qt project demonstrating the problem (4.83 KB, application/x-zip-compressed)
2011-10-20 21:25 PDT, Josh Faust
no flags Details
Patch which fixes the problem (1.12 KB, patch)
2011-10-20 21:35 PDT, Josh Faust
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.