-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (25 loc) · 808 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (25 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL2)
#include "mainwindow.h"
#include <QApplication>
#include <QDir>
#include <QFile>
#include <QIODevice>
#include <QSplashScreen>
#include <QVTKOpenGLStereoWidget.h>
int main(int argc, char *argv[])
{
QSurfaceFormat::setDefaultFormat(QVTKOpenGLStereoWidget::defaultFormat());
QApplication app(argc, argv);
app.setApplicationName("CoolVis");
app.setApplicationVersion("v0.1");
app.setOrganizationName("Eric Liu @ SYSU & USTC");
app.setOrganizationDomain("liusysu123@gmail.com");
app.setWindowIcon(QIcon(":/icons/logo2.png"));
// QSplashScreen splash(QPixmap(":/icons/logo_splash.png"));
// splash.show();
MainWindow w;
w.show();
// splash.finish(&w);
return app.exec();
}