Hi all!

I have two questions ...


  1. Switching windows

    I have a main window that never closes. Sometimes I open other windows on top of the main window.
    I want the user to not be able to hide the top window by clicking on the area of the main window.
    How I can prohibit the transition to another window?
  2. Window cleaning

    By opening additional windows, the user enters some parameters. On the form there are two buttons "Apply" and "Cancel". Each of them hides a window. But if you click "Cancel" and then open this window again, we will see the entered parameters that we canceled. I have to create slots for the buttons and there set the current parameters or clear the fields so that the next time I open the window, I see the valid values of the parameters. Can I somehow return the window back to the state of the class constructor in a different way?


Thanks all!