#include #include #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(); }