How to block signals on QMainWindow?
-
Hi, everybody.
In QMainWindow i opening QDialogBox, after opening it, QMainWindow still procesess signal. What should i do to block it?
-
@
myMainWindowPointer->blockSignals(true);
@Just remember to unblock it later.
-
Or set the QDialogBox as a model dialog, this will block GUI inputs to the MainWindow if you prefer to keep the mainwindow 'running' in the background e.g. updates of the statusbar etc.
-
Hi,
Is your dialog modal ? Are you showing it using exec ?