Skip to content

Commit

Permalink
[Gui] Qt6 OpenGLWidget - move black rectangle off screen (FreeCAD#16863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syres916 authored Sep 28, 2024
1 parent d519f24 commit 6e2cd4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e2cd4e

Please sign in to comment.