[osg-users] how to insert a QWidgetImage in a osgWidget::Window?

Gianni Ambrosio g.ambrosio+osg at gmail.com
Wed Jun 10 00:44:24 PDT 2015


Hi Julien,
no I would like to show a Qt Widget in an osgWidget::Window.

I found an example that shows a Qt Widget in a HUD (with camera and so on)  but in that case I have two problems:
1) global coordinates sent to the Qt widget by osgViewer::InteractiveImageHandler are wrong (I debugged the code and coords are sent to the Qt widget wrt the 3D viewer widget, so not "global" like in Qt framework are usually handled, at least in my scenario).
2) I would like to drag and resize the widget and osgwidget::Window and that can be easily done with: window->attachMoveCallback() and attachScaleCallback().

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64025#64025








More information about the osg-users mailing list