QT Viewer main structure.

CMake: added an entry at main CMake script that makes QTViewer an optional build.
QT Viewer main structure only, libQGLViewer or any 3D functionality can be added to mainWindow as a widget later on.
This commit is contained in:
Tiago Leao
2012-06-22 12:28:34 +00:00
parent 0a5ddece8e
commit 887ce9f9ef
5 changed files with 220 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#include <QApplication>
#include <QString>
#ifndef QT_NO_OPENGL
#include <QGLFormat>
#endif
#include "mainwindow.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
//QGLViewer viewer;
// Restore the previous viewer state.
//viewer.restoreStateFromFile();
MainWindow window;
//window.openFile(" ");
window.show();
return app.exec();
}