Hi Martin,

I'm in the process of merging your changes.  Something I'm not
presently sure about is setting the background colour to 0,0,0,0, is
there a reason why this rather than 1,1,1,0? I'm wondering about
whether if alpha blending between a widget colour and the background
might lead to different results.

The default setting attribute Qt::WA_TransparentBackground does make
me a bit uneasy, what is users don't want a transparent background?
This is something that we should probably provide control of.

It would also be good to put together an example that implements a
basic UI such as in your examples.  This could possible by a test bed
for experimenting with different ways of integrating OSG/Qt.

Thoughts?
Robert.

On Mon, May 10, 2010 at 12:56 PM, Martin Scheffler <[email protected]> wrote:
> 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!
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=27705#27705
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to