Unsolved One QWidget in foreground and block other QWidgets
-
Hello, in my function many QWidgets were shown, but if one specific oppens, the other should be blocked, so that you cannot do anything in them. Every Button should be blocked.
-
Hi
How opens?
Normally you use a modal dialog type of popup and it automatically blocks the
other buttons when you call exec() -
I only use a QWidget and open it with show(). Which class can I use for it?
-
@Michelle02283
You can use QDialog.
and do
void someClick() {
Mydialog dia;
dia.exec();
} -
@Michelle02283 You can disable any QWidget using http://doc.qt.io/qt-5/qwidget.html#enabled-prop