Hi Andres, I would guess that there might be some mistakes when you build your program, e.g. mix debug and release build.
see also: http://www.qtcentre.org/threads/10959-QWidget-Must-construct-a-QApplication-before-a-QPaintDevice?p=263303#post263303 best, Shao On Mon, Sep 22, 2014 at 2:56 PM, Andrés Barrionuevo <abarrionu...@gmx.com> wrote: > Hi, > > I've downloaded the new version (3.2.1) and built it with support for Qt > 4.8. > > When I tried to use the libs in my app (which worked fine with version > 3.0.1) I got two errors. > > First one, from QGraphicsWindowQt: > > > Code: > GraphicsWindowQt:24:21: fatal error: QGLWidget: No such file or directory > > > > I solved this changing the include QGLWidget to QtOpenGL/QGLWidget. > > Second one and still there, it happened when running the app: > > > Code: > QPixmap: Must construct a QApplication before a QPaintDevice > > > > In my code where I use OSG, there's no call to QPixmap. I use other things > from Qt, like QPolygon and QDialog, but no explicitly call to QPixmap. > > And as I said, this worked fine with version 3.0.1. > > The app crashes when doing this call: > > > Code: > camera->setViewport(new osgQt::GraphicsWindowQt( traits.get() ) ) > > > > Any help will be appreciated. > ... > > Thanks and cheers! > Andrés[/i] > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=61111#61111 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org