From a1eb1348ff8026a6c623981d06142769dc18ec78 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Wed, 23 Apr 2014 09:58:32 +0200 Subject: Getting the render window of an offscreen window When using a QQuickWidget, the QQuickWindow is hidden and the contents are displayed in another window. Some components need to query the actual window, e.g. when positioning a popup. Task-number: QTBUG-38116 Change-Id: I34452be2179ccc9e216e4d89264dc700e0cf42a0 Reviewed-by: Gunnar Sletta --- src/quick/items/qquickrendercontrol_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/quick/items/qquickrendercontrol_p.h') diff --git a/src/quick/items/qquickrendercontrol_p.h b/src/quick/items/qquickrendercontrol_p.h index 98dc946303..4cc2cf1252 100644 --- a/src/quick/items/qquickrendercontrol_p.h +++ b/src/quick/items/qquickrendercontrol_p.h @@ -63,6 +63,8 @@ public: ~QQuickRenderControl(); QQuickWindow *window() const; + virtual QWindow *renderWindow(QPoint */*offset*/) { return 0; } + static QWindow *renderWindowFor(QQuickWindow *win, QPoint *offset = 0); void windowDestroyed(); -- cgit v1.2.3