[osg-users] QOpenGLWidget in osgQt

Andre Normann andre.normann at gmail.com
Wed Mar 8 02:21:24 PST 2017


Hi Valerian,

I have done this in the past. Attached you will find my GLWidget class
which is using QOpenGLWidget. It is only working in SingleThreaded mode.


-André


2017-03-08 11:09 GMT+01:00 Valerian Merkling <niarkoleptik at gmail.com>:

> Hi,
>
> I'm currently working on an app based on OSG 3.4.0 and Qt 5.6, targeting
> Win7 -- Win10.
>
> Everythings was fine and smooth with Qt 5.5. I'm using osgQt::GLWidget,
> which is based on QGLWidget.
>
> Since Qt 5.6, I've some hard unsolvable issues with QGLwidget. They are
> not related to OSG, and I can reproduce them with a Qt only example, but I
> also know that these problems are solved with QOpenGLWidget.
>
> First, I would like to know if there is any plan for OSG to use
> QOpenGLWidget.
>
> If not, how hard would it be to make osgQt::QGLWidget inherit from
> QOpenGLWidget ? does anyone else tried it ?
>
> It was discussed in this topic : http://forum.openscenegraph.
> org/viewtopic.php?t=15097&highlight=qopenglwidget but it's about OSG
> 3.2.1 so I don't know how I can use it.
>
>
> Thank you!
>
> Cheers,
> Valerian
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70436#70436
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170308/a7978267/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GLWidget.cpp
Type: text/x-c++src
Size: 9050 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170308/a7978267/attachment-0003.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GLWidget.h
Type: text/x-chdr
Size: 788 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170308/a7978267/attachment-0003.h>


More information about the osg-users mailing list