git-svn-id: svn://db.shs.com.ru/libs@772 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
GLWidget::GLWidget(QWidget *parent) : QWidget(parent) {
|
GLWidget::GLWidget(QWidget *parent) : QWidget(parent) {
|
||||||
view_ = new QGLView();
|
view_ = new QGLView();
|
||||||
view_->setFlag(Qt::FramelessWindowHint);
|
view_->setFlags(windowFlags() | Qt::FramelessWindowHint);
|
||||||
container = QWidget::createWindowContainer(view_, this);
|
container = QWidget::createWindowContainer(view_, this);
|
||||||
lay = new QVBoxLayout(this);
|
lay = new QVBoxLayout(this);
|
||||||
lay->addWidget(container);
|
lay->addWidget(container);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ OpenGLWindow::OpenGLWindow(QWindow *parent)
|
|||||||
, m_context(nullptr)
|
, m_context(nullptr)
|
||||||
, m_device(nullptr)
|
, m_device(nullptr)
|
||||||
{
|
{
|
||||||
setFlag(Qt::FramelessWindowHint);
|
setFlags(flags() | Qt::FramelessWindowHint);
|
||||||
setSurfaceType(QWindow::OpenGLSurface);
|
setSurfaceType(QWindow::OpenGLSurface);
|
||||||
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
|
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
|
||||||
// qDebug() << format;
|
// qDebug() << format;
|
||||||
|
|||||||
Reference in New Issue
Block a user