summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/examples/axes/src/main.cpp
blob: 518faf68f5b1016fb9bf91a3c9fb9b89f50e794e (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
/********************************************************************
    created:   2003/09/10
    filename:  main.cpp
	
    author:    Micha Bieber	
*********************************************************************/

#include <qapplication.h>
#include "axesmainwindow.h"


int main( int argc, char** argv )
{
	QApplication app( argc, argv );
	
  if ( !QGLFormat::hasOpenGL() ) 
	{
		qWarning( "This system has no OpenGL support. Exiting." );     
		return -1;
  }

	AxesMainWindow mainwindow;
	
#if QT_VERSION < 0x040000
  app.setMainWidget(&mainwindow);
#endif

	mainwindow.show();

	return app.exec();
}