[osg-users] How to load an osg::Image into a qtwidget like Label

Andrea Martini martini.andrea at gmail.com
Wed Oct 14 08:01:24 PDT 2015


Hi,
I'm going to create a function which can investigate on each image inside a 3D model.
I created a texture visitor which has a list of images belong to 3D model.
Now i would like to view each single image inside a qt widget (for example inside a Label).
Is there a way to do that?
I used the osg image->data() to get unsigned char*, but as i don't know the image type (inside the 3d model), i can't assign this image to the qt widget.
Could you give me some suggestions?
I found in this forum the inverse solution : how to copy Qimage to osg::image. ;(
Thank you!

Cheers,
Andrea

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








More information about the osg-users mailing list