You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
578 B
31 lines
578 B
|
3 years ago
|
#include "mainwindow.h"
|
||
|
|
#include <qapplication.h>
|
||
|
|
|
||
|
|
#ifndef QWT_NO_OPENGL
|
||
|
|
#if QT_VERSION >= 0x040600 && QT_VERSION < 0x050000
|
||
|
|
#define USE_OPENGL 1
|
||
|
|
#endif
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#if USE_OPENGL
|
||
|
|
#include <qgl.h>
|
||
|
|
#endif
|
||
|
|
|
||
|
|
int main( int argc, char **argv )
|
||
|
|
{
|
||
|
|
#if USE_OPENGL
|
||
|
|
// on my box QPaintEngine::OpenGL2 has serious problems, f.e:
|
||
|
|
// the lines of a simple drawRect are wrong.
|
||
|
|
|
||
|
|
QGL::setPreferredPaintEngine( QPaintEngine::OpenGL );
|
||
|
|
#endif
|
||
|
|
|
||
|
|
QApplication a( argc, argv );
|
||
|
|
|
||
|
|
MainWindow mainWindow;
|
||
|
|
mainWindow.resize( 600, 400 );
|
||
|
|
mainWindow.show();
|
||
|
|
|
||
|
|
return a.exec();
|
||
|
|
}
|