blob: e5b99e77e706205695dfefc1203b28361c6b36c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <QApplication>
#include <QLabel>
#ifndef QT_NO_OPENGL
#include "mainwidget.h"
#endif
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setApplicationName("cube");
a.setApplicationVersion("0.1");
#ifndef QT_NO_OPENGL
MainWidget w;
w.resize(640, 480);
w.show();
#else
QLabel * notifyLabel = new QLabel("OpenGL Support required");
notifyLabel->show();
#endif
return a.exec();
}
|