Hi Martin,

Widgets are drawn with a white background. A transparent background is better - 
now we can use osgQT for HUD creation!
  I set the background fill color of the QGraphicsViewAdapter from white to 
(0,0,0,0) and clear the qimage before painting the graphicsView to it.

Also I added the attribute Qt::WA_TranslucentBackground to the _widget property 
of QWidgetImage.

I've added a pic that shows an osg widget with two subwidgets, a calendar and a 
semi-transparent circle.
Nice!

Did you mean to attach a file to this post? Also which example are you talking about exactly?

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to