git-svn-id: svn://db.shs.com.ru/libs@537 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
15
qglview/glwidget.cpp
Normal file
15
qglview/glwidget.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "glwidget.h"
|
||||
#include "qglview.h"
|
||||
#include <QVBoxLayout>
|
||||
|
||||
|
||||
GLWidget::GLWidget(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
view_ = new QGLView();
|
||||
view_->setFlag(Qt::FramelessWindowHint);
|
||||
container = QWidget::createWindowContainer(view_, this);
|
||||
lay = new QVBoxLayout(this);
|
||||
lay->addWidget(container);
|
||||
lay->setContentsMargins(0, 0, 0, 0);
|
||||
lay->setSpacing(0);
|
||||
}
|
||||
Reference in New Issue
Block a user