how to delete this wighet created by QWidget::createWindowContainer
Solved
General and Desktop
-
@jimfar said in how to delete this wighet created by QWidget::createWindowContainer:
every time i delete this wighet created by QWidget::createWindowContainer,it will crash somehow or other
- Does it help if you use
deleteLater()
instead ofdelete
? - What do you put inside the container?
- Does it help if you use
-
@jimfar said in how to delete this wighet created by QWidget::createWindowContainer:
createWindowContainer
container takes the ownership of the window. You are not supposed explicitly delete the object. As suggested already by @JKSH use deleteLater or leave it. Container will take care of deleting it.