[osg-users] delete qwidget & removeView

Sebastian Schmidt herrdersuppen at gmail.com
Fri Jun 22 03:20:56 PDT 2018


How can i safely delete a qwidget and remove the corresponding view from the compositeviewer at runtime?

At creation time i call setAttribute(Qt::WA_DeleteOnClose) and connect the destroyed() event of the widget with a function that just calls removeView().

After closing and opening the window several times it always crashes somewhere inside 
GraphicsWindowQt::swapBuffersImplementation()
where _widget is NULL.

------------------------
OSG Version: 3.4.1
OS: OpenSuse Leap 42.1

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







More information about the osg-users mailing list