Re: [osg-users] openscenegraph openGL context error in Qt
Hi Brett, Brett wrote: following error to console: QWidget: Must construct QApplication before a QPaintDevice I'm on a previous version of OSG but comparing osgQt 3.01 with 3.2.0 it seems it doesn't change much. Sometimes the error you reported is related to mixed debug and release libraries. Regards, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56991#56991 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] openscenegraph openGL context error in Qt
Hi Lokesh, you can find an osgviewerQT example in osg distribution. Anyway I attach an example of a CompositeViewer I'm using for testing that is a little bit different. It uses osgQt. Cheers, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56974#56974 Attachments: http://forum.openscenegraph.org//files/osgviewerqt_151.cpp ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] openscenegraph openGL context error in Qt
gambr wrote: Hi Lokesh, you can find an osgviewerQT example in osg distribution. Anyway I attach an example of a CompositeViewer I'm using for testing that is a little bit different. It uses osgQt. Cheers, Gianni thanks gambr for reply. yeah.. i will give try to your attached osgQt widget example. also, i have solved my problem by deleting layout object and creating whole new layout object and placing QGLWidget into it. Code: removeQMLview(); //destroying QQuikview delete layout(); //deleting Borderlayout with centered QQuikview -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=56978#56978 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org