diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-08-31 11:55:17 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-08-31 13:27:09 +0200 |
commit | 9bfa722bc0b67e01f35d78e1165602e174ae3b02 (patch) | |
tree | 038373012abf8d04f9a80894d1f27235bbc41c10 /src/quickwidgets | |
parent | 0e8dfe18767c16f7d84a4ce1a887f6e37a13ed33 (diff) |
QQuickWidget: Propagate focusObjectChanged
When the offscreen window focuses an item, make sure
we set keyboard focus to the QQuickWidget in the widget
chain.
[ChangeLog][QQuickWidget] Fixed an issue where virtual
keyboards and other input methods would not react to
input fields inside a QQuickWidget.
Fixes: QTBUG-61475
Pick-to: 5.15
Change-Id: Ice2905a33ab0f4669622367ddae2c0ed3a1f841c
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quickwidgets')
-rw-r--r-- | src/quickwidgets/qquickwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget.cpp b/src/quickwidgets/qquickwidget.cpp index 1c9fc3ca69..f384058523 100644 --- a/src/quickwidgets/qquickwidget.cpp +++ b/src/quickwidgets/qquickwidget.cpp @@ -117,6 +117,7 @@ void QQuickWidgetPrivate::initOffscreenWindow() QWidget::connect(offscreenWindow, SIGNAL(sceneGraphInitialized()), q, SLOT(createFramebufferObject())); QWidget::connect(offscreenWindow, SIGNAL(sceneGraphInvalidated()), q, SLOT(destroyFramebufferObject())); + QWidget::connect(offscreenWindow, SIGNAL(focusObjectChanged()), q, SLOT(setFocus())); } void QQuickWidgetPrivate::init(QQmlEngine* e) |