aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickwidgets/qquickwidget_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-04-30 17:37:27 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-05-27 10:45:45 +0200
commit0d80dbd8c2cfc2a7d2a4d970b7acfc7fb5fb97a0 (patch)
treea6f487a8604e6212d27184b69debac87e0f3aca8 /src/quickwidgets/qquickwidget_p.h
parent6d3aae3cf47fbf21bd27eda7a249c2a23308156e (diff)
Enable QQuickWidget with OpenGL over RHI
Also adapts to new NativeTexture format, where the actual handle is passed around instead of a pointer to it. [ChangeLog][QQuickWidget][Important Behavioral Changes] In earlier versions, the returned value from QQuickWidget::quickWindow() would persist for the life time of the widget. This is no longer the case, so if you are connecting to its signals, make sure you also connect to its destroyed() signal and update the connections when it is destroyed. Fixes: QTBUG-78638 Change-Id: I33cee8543ef1ff5d31555ed3ac18ba78c9c45102 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quickwidgets/qquickwidget_p.h')
-rw-r--r--src/quickwidgets/qquickwidget_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget_p.h b/src/quickwidgets/qquickwidget_p.h
index 881f7f9220..0517a772e1 100644
--- a/src/quickwidgets/qquickwidget_p.h
+++ b/src/quickwidgets/qquickwidget_p.h
@@ -108,6 +108,7 @@ public:
#endif
void init(QQmlEngine* e = 0);
+ void initOffscreenWindow();
void ensureEngine() const;
void handleWindowChange();
void invalidateRenderControl();