Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

What happened when the user close the QDockWidget?does all the widget on in include itself 's destructor been called?



  • what happened when the user close the QDockWidget?does all the widget on in include itself 's destructor been called?
    what should i do if i just want the QDockWidget invisible when the user click the close button there,
    and if that i can show it back easily.
    thank you



  • When the user click on the close button of a QDockWidget, it just hide, the children widget are not destroyed. To show it again just right-click on the toolbat or the menubar and check your dock widget.


Log in to reply