Thanks Janathan, change merged and submitted to svn/trunk. On 25 January 2015 at 01:09, Jonathan Greig <[email protected]> wrote:
> I was testing out the example and it works fine as a standalone example, > but I found that it didn't work as expected when adding the class to some > existing code I have to test it out. The osg widget was appearing but it > didn't appear to be updating. After tweaking it to pass on the parent > QWidget pointer from my code, it worked as expected. I added the > WindowFlags to the attached file for good measure. If you look at the Qt > Documentation for QWidget ( http://doc.qt.io/qt-5/qwidget.html#QWidget ), > you'll see that is exactly where I got this from. When subclassing a widget > as such, you should allow the user to pass in the parent at least, > considering that has a major effect on how or if Qt may clean up the memory. > > Anyway, its a simple fix. > > Cheers, > Jonathan > > _______________________________________________ > 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
