Last change
on this file since 427 was
418,
checked in by Torben Dannhauer, 12 years ago
|
|
-
Property svn:eol-style set to
native
|
File size:
634 bytes
|
Rev | Line | |
---|
[415] | 1 | #include "osgvisualgui.h" |
---|
[418] | 2 | #include "debug.h" |
---|
[415] | 3 | #include <QtGui/QApplication> |
---|
| 4 | |
---|
| 5 | int main(int argc, char *argv[]) |
---|
| 6 | { |
---|
| 7 | QApplication a(argc, argv); |
---|
[418] | 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 | |
---|
[415] | 21 | osgVisualGUI w; |
---|
[418] | 22 | w.setDebug(debug); |
---|
[415] | 23 | w.show(); |
---|
| 24 | return a.exec(); |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.