Details
Description
A special use case is if the browser application based on Qt WebEngine Widgets implements an URL bar with autocomplete support by QCompleter. If the QCompleter matches (the loadable url in the model) QWebEngineView does not get the keyboard focus.
I've attached a simple example to reproduce this. Follow these steps:
1. Start the application it has a minimalistic url bar at the top
2. Type www.google.com and press enter
3. The Google site will be loaded
4. Start type something
Expected behavior:
The text that you typed appears in the Google's input field
Actual behaviour:
No text appears in the input field until you click on the view, however it seemingly has the focus
Be aware of that the "www.google.com" string is hard coded in the example. Typing any other text will also load www.google.com but everything will work as expected because QCompleter won't match.
This issue also can be reproduced by demobrowser (it uses QCompleter).
This issue affects 5.8 only. It seems to me this issue exists since QWebEngineView uses QQuickWidget: https://codereview.qt-project.org/#/c/163267/
Attachments
Issue Links
- relates to
-
QTBUG-59677 QQuickWidget doesn't set active focus on Linux in some cases
- Reported
- resulted from
-
QTBUG-53283 scenegraphng for WebEngine
- Closed
- resulted in
-
QTBUG-59080 Crash on opening link in new window
- Closed
-
QTBUG-64501 Infinite loop using QWebEngineView
- Closed
For Gerrit Dashboard: QTBUG-56652 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
176113,5 | Fix keyboard focus of RWHVQDW after popup | 5.8 | qt/qtwebengine | Status: MERGED | +2 | 0 |