Previous screen inactive.
-
Hello, I have two screens, for ex. onclicking a button i move to a differnt screen(second screen) which overlaps the first screen. But i want to make the I screen inactive, I do not want any event occuring in the first screen when second screen is active. Is this possible?
-
Sure it is. Is the second screen a dialog? Then simply give the dialog a owner
@
YourDialog *newDialog = YourDialog(this);
@
The dialog is automatic set to stop the other screen from operation. This is called modal or modalles.
For an application is is:
@setWindowModality(Qt::WindowModality);@
If this doesn't help you maybe let us know what types of windows you use?
greetz