Hi Wang Rui,

I'm just reviewing your QWidgetImage class and am bit confused about it's
role.  You've subclassed from osgWidget::BrowserImage which implies that
it'll be a browser image, but from the look to me the actual implementation
is decoupled from browsers completely - it's just a generic means for
integrating Qt widgets (which could of course be a web browser).  My
inclination would be to have QWidgetImage be subclassed from osg::Image
directly and not have anything to do with the BrowserImage.

As for osgWidget having an optional Qt dependency, I'd personally not be
keen on this as it would mean that osgWidget is functionally tied to Qt if
you want to use all its functionality.  Having osgQt classes that work with
and extend osgWidget are perfectly reasonable though.   Potentially osgQt
itself could be used in place of osgWidget, but to use Qt effectively you
really have to have Qt center stage, it's not ideal for hiding behind the
scenes as an implementation detail.

Robert.



On Mon, Mar 8, 2010 at 6:34 AM, Wang Rui <[email protected]> wrote:

> Hi Robert,
>
> I've noticed that the new osgQt nodekit is coming, with a cool support
> of embedding html into 3d scenes. To make it even more useful, I just
> made an addition of embedding 2D UI controls (pushbuttons, inputboxes,
> and so on) into 3d scenes, using QGraphicsViewAdapter and a new
> QWidgetImage class. I also modified the osgQtBrowser example to
> support viewing a user-defined QWidget object instead of QWebView,
> with the '--use-qwidget' argument.
>
> BTW, I think all these functionalities could be merged to osgWidget
> later with an optional Qt dependency. What's your opinion?
>
> Cheers,
>
> Wang Rui
>
> _______________________________________________
> 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