diff --git a/common/lc_mainwindow.cpp b/common/lc_mainwindow.cpp index 768730fb..d5e2ca47 100644 --- a/common/lc_mainwindow.cpp +++ b/common/lc_mainwindow.cpp @@ -104,6 +104,15 @@ void lcMainWindow::CreateWidgets() CreateMenus(); CreateStatusBar(); + int AASamples = lcGetProfileInt(LC_PROFILE_ANTIALIASING_SAMPLES); + if (AASamples > 1) + { + QGLFormat format; + format.setSampleBuffers(true); + format.setSamples(AASamples); + QGLFormat::setDefaultFormat(format); + } + mModelTabWidget = new QTabWidget(); #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) mModelTabWidget->tabBar()->setMovable(true); diff --git a/qt/lc_qglwidget.cpp b/qt/lc_qglwidget.cpp index 917ff973..955f65f7 100644 --- a/qt/lc_qglwidget.cpp +++ b/qt/lc_qglwidget.cpp @@ -99,15 +99,6 @@ lcQGLWidget::lcQGLWidget(QWidget *parent, lcGLWidget *owner, bool view) gPlaceholderMesh = new lcMesh; gPlaceholderMesh->CreateBox(); - - int AASamples = lcGetProfileInt(LC_PROFILE_ANTIALIASING_SAMPLES); - if (AASamples > 1) - { - QGLFormat format; - format.setSampleBuffers(true); - format.setSamples(AASamples); - QGLFormat::setDefaultFormat(format); - } } gWidgetList.append(this);