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

Qt locking QMainWindow when a QDialog is open



  • I cannot for the life of me find a function that allows me to achieve the functionality I desire. My application has a lot of QDialogs that open up from the QMainWindow and also other QDialogs that open up inside other QDialogs. I want to simply make the parent window uneditable while the Dialogs are open. If anyone could point me in the right direction it would be greatly appreciated.



  • Use QWidget::open() for window modal behavior.


Log in to reply