source: experimental/osgVisualGuiNG/main.cpp @ 418

Last change on this file since 418 was 418, checked in by Torben Dannhauer, 12 years ago
  • Property svn:eol-style set to native
File size: 634 bytes
Line 
1#include "osgvisualgui.h"
2#include "debug.h"
3#include <QtGui/QApplication>
4
5int main(int argc, char *argv[])
6{
7        QApplication a(argc, argv);
8        a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
9
10        QCoreApplication::setOrganizationName("osgVisual");
11        QCoreApplication::setOrganizationDomain("osgvisual.org");
12        QCoreApplication::setApplicationName("osgVisualGUI");
13
14        // DEBUG-Handler installieren
15        QTextEdit *debug = new QTextEdit;
16        debug->hide();
17        setDebugPointer( debug );
18        qInstallMsgHandler( myMessageOutput );
19        qDebug("MessageHandler installiert");
20
21        osgVisualGUI w;
22        w.setDebug(debug);
23        w.show();
24        return a.exec();
25}
Note: See TracBrowser for help on using the repository browser.