Make sure QGuiApplication::focusObject() returns the QQuickItem
that has focus, and forward input method events.
Task-number: QTBUG-42677
Change-Id: Ic07f93a2529c3dde67272b489bdc61fd25582a69
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
return renderControl->grab();
}
+QObject *QQuickWidgetPrivate::focusObject()
+{
+ return offscreenWindow ? offscreenWindow->focusObject() : 0;
+}
+
/*!
\module QtQuickWidgets
\title Qt Quick Widgets C++ Classes
e->accept();
return true;
#endif
+ case QEvent::InputMethod:
+ case QEvent::InputMethodQuery:
+
case QEvent::TouchBegin:
case QEvent::TouchEnd:
case QEvent::TouchUpdate:
void destroyContext();
void handleContextCreationFailure(const QSurfaceFormat &format, bool isEs);
+ QObject *focusObject() Q_DECL_OVERRIDE;
+
GLuint textureId() const Q_DECL_OVERRIDE;
QImage grabFramebuffer() Q_DECL_OVERRIDE;