Summary: | [Qt] No way to set focus to GraphicsWebView with Qt Quick (QML) outside of a mouse click. | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Gary <getownse> | ||||||||||
Component: | WebKit Qt | Assignee: | Girish Ramakrishnan <girish> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Major | CC: | girish, hausmann, menard | ||||||||||
Priority: | P2 | Keywords: | Qt | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | Linux | ||||||||||||
URL: | http://developer.qt.nokia.com/forums/viewthread/2394/ | ||||||||||||
Attachments: |
|
Description
Gary
2010-12-14 21:19:22 PST
Created attachment 76628 [details]
QML Project Code to show Error
QML Project:
WebKit.qml -- The QML code. Creates 2 menus. One with QML and one with HTML.
index.html -- The HTML menu. Uses JavaScript to navigate a menu.
jquery-1.4.4.min.js -- JQuery javascript library. Assist in JavaScript development.
main.css -- Stylesheets for HTML menu.
Launch WebKit.qml with QtCreator or qmlviewer WebKit.qml.
You can navigate between the HTML menu and the QML menu using the left and right keys.
You can navigate the QML menu by pressing up and down.
You can NOT navigate the HTML menu by pressing up and down, UNTIL you first click on the HTML menu. Then you CAN navigate the HTML menu by pressing up and down.
Created attachment 77877 [details]
Make QDeclarativeWebView the focus proxy of QGraphicsWebView
Make QDeclarativeWebView the focus proxy of QGraphicsWebView.
Created attachment 77882 [details]
Make QGraphicsWebView a FocusScope
Making it a FocusProxy is not the correct fix because it would result in qml 'focus' property returning false even when the view has focus.
Created attachment 77883 [details]
77882: Make QGraphicsWebView a FocusScope (2)
Wrong description and ChangeLog
Comment on attachment 77883 [details]
77882: Make QGraphicsWebView a FocusScope (2)
r=me. ACKed also by Aaron. Would be nice to have a more elaborate changelog entry when landing *hint* *hint* :)
|