Hi all,
Since Qt 4.4, we are able to mix OpenGL and Qt in a way which provides more possibility than the osgViewerQT do by using QGraphics framework, especially for HUD display.
I joint the example I write to do this.
The main function loads a model a display into my QGraphicsScene inheriting class.
On top of it is drawn a simple semi-transparent QWidget but we can draw whatever we want as menu…
I extended the example code from the Qt Quaterly to use the osg::Viewer.
But I think it can interest other Qt/OSG users.
I still have 2 problems I don’t have the time to look forward:
- The widget transparency only run with the composite viewer (run my example with the --composite argument)
- The window resize produces a deformation of widgets inside but I think it more a Qt problem ;) I say this just for information.
I hope this could be usefull for someone.
Eric Z.
Thanks for the example.
We are using OSG in QT application with some GUI over the OSG 3D rendering widget. QT version is 4.3.X but we want to
move to QT 4.4.X.
With your code, I will spare time. Thanks.
Johan.
Eric ZAREMBA a écrit :
> Hi all,
>
>
>
> Since Qt 4.4, we are able to mix OpenGL and Qt in a way which provides
> more possibility than the osgViewerQT do by using QGraphics framework,
> especially for HUD display.
>
> I joint the example I write to do this.
>
...
>
> I hope this could be usefull for someone.
>
> Eric Z.
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Johan Nouvel, R&D Project Manager
http://www.archivideo.com
tel : +33 (0)2 99 86 30 20
ARCHIVIDEO, 40 rue des Veyettes, 35000 RENNES, FRANCE
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org