Hi, I am trying to to embed SoQtExaminerViewer into other Qt widget, like
QVBox. The program is built successfully under both windows and linux. I use
nmake to build Qt application. However, the program did not show anything
when it was executed in windows, but everthing works just fine under linux.
The following is my code:
What did I miss in windows? Thanks in advance for your help.
int main(int argc, char *argv)
QApplication a( argc, argv );
QVBox vb( 0, "Hello", 0 );
a.setMainWidget( &vb );
SoSeparator * root = new SoSeparator;
SoBaseColor * col = new SoBaseColor;
col->rgb = SbColor(1, 1, 0);
SoQtExaminerViewer * eviewer = new SoQtExaminerViewer(&vb);
// Pop up the main window.
// Loop until exit.