Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.4.0 Beta2
-
None
-
a7d353ae7d (qt/qtwebengine/dev) d77fc39d99 (qt/qtwebengine/6.4) d77fc39d99 (qt/tqtc-qtwebengine/6.4) a7d353ae7d (qt/tqtc-qtwebengine/dev) d77fc39d99 (qt/qtwebengine/6.4.0) d77fc39d99 (qt/tqtc-qtwebengine/6.4.0)
Description
With the attached reproducer and a minimal .pro such as:
QT += core widgets webenginewidgets TARGET = testbrowser TEMPLATE = app SOURCES += main.cpp
with Qt 6.3, the focus rectangle appears after 2s as expected:
and the printed output is:
JS focused: QVariant(QString, "TEXTAREA")
QApp focused: QtWebEngineCore::RenderWidgetHostViewQtDelegateWidget(0x55bd630ed580)
With Qt 6.4, however, the JS element is focused, and keyboard input lands there, but no focus rectangle or flashing cursor appears:
and the output shows that some QQuickWidget rather than the RenderWidgetHostViewQtDelegateWidget has focus:
JS focused: QVariant(QString, "TEXTAREA")
QApp focused: QQuickWidget(0x559a5cee8220)
When clicking the web page (anywhere outside of the textarea) before the 2s passed, then things work as expected, however.
Attachments
Issue Links
- resulted from
-
QTBUG-96377 Using QWebEngineView::setPage() on page already active
-
- Closed
-
For Gerrit Dashboard: QTBUG-105072 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
427543,3 | Fix initial widget focus | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
428551,2 | Fix initial widget focus | 6.4 | qt/qtwebengine | Status: MERGED | +2 | 0 |