added Qt Example, next change it to fit my project
This commit is contained in:
24
QtMeshViewer/Source/MainWindow.cpp
Normal file
24
QtMeshViewer/Source/MainWindow.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user