Re: [osg-users] delete qwidget & removeView

2018-06-25 Thread Sebastian Schmidt
okay so for now i avoid Qt::WA_DeleteOnClose and it works. Just catch the QCloseEvent of the widget and hide or delete OSG Version: 3.4.1 OS: OpenSuse Leap 42.1 -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74141#74141

[osg-users] delete qwidget & removeView

2018-06-22 Thread Sebastian Schmidt
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