Solved How to disable the parent form when a child form is active?
-
In C# or VB.net, you wud achieve it by ShowDialog , which means you cannot interact with the parent form until child form closes.
How to achieve same in qt ?
-
Hi and welcome
Its called a modal dialog and its activated by calling exec() and not show()
Mydialog dialog;;
dialog.exec(); // local event loop and blocking.If Widget is not QDialog, you can read about
setWindowModality(Qt::ApplicationModal);
http://doc.qt.io/qt-5/qwidget.html#windowModality-propto get such effect.
-
Hi and welcome
Its called a modal dialog and its activated by calling exec() and not show()
Mydialog dialog;;
dialog.exec(); // local event loop and blocking.If Widget is not QDialog, you can read about
setWindowModality(Qt::ApplicationModal);
http://doc.qt.io/qt-5/qwidget.html#windowModality-propto get such effect.
-
@mrjj Thank You !!
that did the trick...