blob: cce8242c6e2d29984b3c0ace5c6cefbfe0a0ea0f (
plain)
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
28
29
30
31
32
|
/********************************************************************
created: 2003/09/09
filename: main.cpp
author: Micha Bieber
*********************************************************************/
#include <qapplication.h>
#include "mesh2mainwindow.h"
int main( int argc, char **argv )
{
QApplication::setColorSpec( QApplication::CustomColor );
QApplication app(argc,argv);
if ( !QGLFormat::hasOpenGL() )
{
qWarning( "This system has no OpenGL support. Exiting." );
return -1;
}
Mesh2MainWindow mainwindow;
#if QT_VERSION < 0x040000
app.setMainWidget(&mainwindow);
#endif
mainwindow.resize(1024,768);
mainwindow.show();
return app.exec();
}
|