From b6e5e571afd213d4771af23a57627f12fb8f64e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 11 Mar 2020 15:07:15 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@772 a8b55f48-bf90-11e4-a774-851b48703e85 --- qglengine/glwidget.cpp | 2 +- qglengine/openglwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qglengine/glwidget.cpp b/qglengine/glwidget.cpp index 980757f..6cb8d82 100644 --- a/qglengine/glwidget.cpp +++ b/qglengine/glwidget.cpp @@ -5,7 +5,7 @@ GLWidget::GLWidget(QWidget *parent) : QWidget(parent) { view_ = new QGLView(); - view_->setFlag(Qt::FramelessWindowHint); + view_->setFlags(windowFlags() | Qt::FramelessWindowHint); container = QWidget::createWindowContainer(view_, this); lay = new QVBoxLayout(this); lay->addWidget(container); diff --git a/qglengine/openglwindow.cpp b/qglengine/openglwindow.cpp index f6fa56c..3768a84 100644 --- a/qglengine/openglwindow.cpp +++ b/qglengine/openglwindow.cpp @@ -10,7 +10,7 @@ OpenGLWindow::OpenGLWindow(QWindow *parent) , m_context(nullptr) , m_device(nullptr) { - setFlag(Qt::FramelessWindowHint); + setFlags(flags() | Qt::FramelessWindowHint); setSurfaceType(QWindow::OpenGLSurface); QSurfaceFormat format = QSurfaceFormat::defaultFormat(); // qDebug() << format;