Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How could I unblock some widgets after QDialog exec is called
-
As the title mentioned, exec of QDialog will prevent you to manipulate any widgets except of the QDialog itself, is it possible to tell the QDialog, there are some widget should not be blocked?Thanks
-
Hi @tham ,
http://doc.qt.io/qt-5/qt.html#WindowModality-enum
this could help you
-
There is no "one click" way to do it, but you can disable modality of the widget and then selectively call
setEnabled(false)
only on widgets you wish to block.
-
@tham you should ask yourself if you need/want a modal or a modeless dialog.
And based on the answer you achieve, you may need to revisit if some of the widgets you want enabled perhaps need to be part of the dialog.
You may want to share some screenshots in any case.