SWBF2-Classic-Msh-Viewer/QtMeshViewer/Source/MainWindow.cpp

24 lines
457 B
C++
Raw Normal View History

#include "..\Header\MainWindow.h"
#include "..\Header\OglViewerWidget.h"
#include <QSurfaceFormat>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindowClass)
{
ui->setupUi(this);
QSurfaceFormat format;
format.setDepthBufferSize(24);
QSurfaceFormat::setDefaultFormat(format);
this->setCentralWidget(new OglViewerWidget(this));
ui->statusBar->showMessage("haha vbgf");
}
MainWindow::~MainWindow()
{
delete ui;
}