diff options
-rw-r--r-- | src/plugins/platforms/webgl/qwebglwindow.cpp | 6 | ||||
-rw-r--r-- | src/plugins/platforms/webgl/qwebglwindow.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/qwebglwindow.cpp b/src/plugins/platforms/webgl/qwebglwindow.cpp index 46c6c1b..9bc0b7c 100644 --- a/src/plugins/platforms/webgl/qwebglwindow.cpp +++ b/src/plugins/platforms/webgl/qwebglwindow.cpp @@ -149,6 +149,12 @@ QWebGLScreen *QWebGLWindow::screen() const return static_cast<QWebGLScreen *>(QPlatformWindow::screen()); } +void QWebGLWindow::setGeometry(const QRect &rect) +{ + QWindowSystemInterface::handleGeometryChange(window(), rect); + QPlatformWindow::setGeometry(rect); +} + void QWebGLWindow::setDefaults(const QMap<GLenum, QVariant> &values) { Q_D(QWebGLWindow); diff --git a/src/plugins/platforms/webgl/qwebglwindow.h b/src/plugins/platforms/webgl/qwebglwindow.h index 972207c..4d0a8c2 100644 --- a/src/plugins/platforms/webgl/qwebglwindow.h +++ b/src/plugins/platforms/webgl/qwebglwindow.h @@ -63,6 +63,7 @@ public: QWebGLScreen *screen() const; + void setGeometry(const QRect &rect) override; void setDefaults(const QMap<GLenum, QVariant> &values); private: |