Hi everyone,

I'm totally new to OSG. I wish to manage a 3D scene with OSG in an existing Qt 
application.

I tried to run osgViewerQt, but I get the following message

Code:
QWidget: Must construct a QApplication before a QWidget


on this line:

Code:
ViewerWidget* viewWidget = new ViewerWidget(threadingModel);



It makes no sense to me as the QApplication is created at the previous line.
When I replace the ViewerWidget by a QWidget, it runs normally.

I built OSG-3.2.0 from source with MingW 4.8 (32 bits)
and I'm running Qt-5.2.0 with the same compiler (as provided by Qt)

Thank you for your help!


EDIT:

I found out, this come from the fact that I built OSG in release mode and 
osgViewerQt in debug mode.
the qApp global var was therefore instancied in the QtCore debug DLL but OSG 
was using the release one.

I guess that this post can be deleted as it has no concern with OSG.
(And I can start using OSG for good  :D  :D )

Cheers,
Remi

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57913#57913





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to