HdThread.cxx
Go to the documentation of this file.
1 
14 // inconsistent dll linkage
15 #ifdef _MSC_VER
16 #include "msdevstudio/MSconfig.h"
17 #endif
18 
19 #include "HdThread.h"
20 
21 #include "QtApp.h"
22 
23 #include <iostream>
24 using std::cout;
25 using std::endl;
26 
27 using namespace hippodraw;
28 
30  : QThread ()
31 {
32 }
33 
35 {
36 }
37 
38 void
40 run ()
41 {
42  static int argc = 1;
43  static char * argv[1];
44  argv[0] = const_cast < char * > ( "/HippoDraw");// fake abs path for Mac OS X
45 
46  QtApp app ( argc, argv );
47  app.setFirstWindow();
48 
49  try {
50  app.exec ();
51  }
52  catch ( std::exception & e ) {
53  std::cout << e.what()
54  << std::endl;
55  }
56 }

Generated for HippoDraw Class Library by doxygen