Hi JS, Adding the ability to adjust the various settings is the best thing to do. I'll await your changes before going any further the transparency changes.
Robert. On Fri, May 21, 2010 at 2:08 PM, Jean-Sébastien Guay <[email protected]> wrote: > Hi Robert, Martin, > >> 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. > > I personally think this should not be a default setting. In fact, > QWidgetImage exposes _widget through its getQWidget() accessor, so a user > can set this themselves if they want. And then by adding a getter+setter for > QGraphicsViewAdapter::_backgroundColor, we could get the same results as > this patch but be more flexible. > >> 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. > > I'm currently in the process of making such an example. I'm getting good > results, I just need to fix a few things before I submit it. So perhaps you > can hold off on this patch until I'm done, as my example will also require > some changes to QWidgetImage and QGraphicsViewAdapter. > > I've been able to make QWidgetImage render faster, and make it work > correctly when in a HUD (osgViewer::View::computeIntersections() didn't seem > to like when there was an in-scenegraph osg::Camera with an ortho2D(0,1,0,1) > projection in the node's nodepath, it didn't return correct intersections, > so I just did my own intersection function). I'm also having some trouble > with more "interesting" widgets, for example I can't edit the text in a > QTextEdit for some reason (I suspect focus issues), and I can't drag around > or close QDialogs (though they are rendered correctly - seems like the title > bar doesn't respond to mouse input but buttons on the dialogs themselves > work). > > I'll let you know when I'm ready to submit. Hopefully today. > > 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 > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
