I forgot to initialize the ViewerQOSG with a pointer (this) to the QMainWindow "_viewer = new ViewerQOSG(this)". It is ok now. John Ivar Haugland
On Wed, Mar 18, 2009 at 3:20 PM, John Ivar Haugland <[email protected] > wrote: > Hi, > > I tried to set the QOSGWidget from the examples as central widget in a > QApplication (using setCentralWidget). It did not work (the central > widget came up empty). Have anyone tried that before, or know what the > problem can be? (A single-threaded QGLWidget based widget will work, but the > QOSGWidget can use all threading models) > Platform: Windows XP 32bit, OpenSceneGraph 2.8.0, QT 4.3.3, Visual Studio > 2008 Pro. > John Ivar Haugland >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

