From 6e2cd4e73303f817e4bf5e908abe39030b7c5fb3 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Sat, 28 Sep 2024 03:50:59 +0100 Subject: [PATCH] [Gui] Qt6 OpenGLWidget - move black rectangle off screen (#16863) --- src/Gui/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 7f7e28c4fd16..0cc5f55356c6 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -397,7 +397,8 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f) // after opening project and prevent issues with double initialization of the window // // https://stackoverflow.com/questions/76026196/how-to-force-qt-to-use-the-opengl-window-type - new QOpenGLWidget(this); + auto _OpenGLWidget = new QOpenGLWidget(this); + _OpenGLWidget->move(QPoint(-100,-100)); #endif // global access