Once the Qt application is opened, how to ensure that it cannot be switched to a different screen?
Hi @Harsh13 and welcome
the answer is you can't that is managed by your Operation System/ Window Manager.
Maybe there's a way to archive what you want, what exactly do you want to prevent?
Consider this scenario- I've changed the value of a button and without confirming the value, I switch to another screen. Later when I switch back to the application, the value is automatically confirmed which is not the expected behavior.
what do you mean by " I've changed the value of a button .. without confirming the value " ?
maybe this can help Dialog Windows
There's a button, on click of which, the value gets incremented and when clicked again, the changed value gets confirmed. If incremented and not confirmed, a color animation(similar to blinking ) begins for 30 seconds.
Now if I click on the button and increment the value without confirming it and switch to a different screen and then come back to the application, it should remain on the value without getting confirmed.
that is the default behavior.
Buttons don't emit the clicked signal during focus change.
Button as in a rectangle which when clicked performs the action