[Webkit-unassigned] [Bug 94384] screenToWindow and windowToScreen are not implemented in Qt5 WebKit2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 24 09:43:56 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=94384





--- Comment #5 from Olivier Crête <olivier.crete at collabora.com>  2012-08-24 09:43:55 PST ---
Do you have any suggestion on how to do it better? I'm especially confused on how the QWindow and QQuickItem coordinates match. Aren't scene coordinates just another name for window coordinates or are they different? In screenToWindow(), should I do m_webView->mapToScene(window->mapFromGlobal(point)) or am I completely lost?

For windowToScreen, the parameter is indeed displaced because of the URL bar and that's what I was trying to fix in the first place. My understanding was that the "window" here is actually the "webkit window", a QQuickWebView, not the actual QWindow, hence the need to map them to the scene.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list