How can you make it so that when you press a key, a new window appears (new form) with its own keys, gadgets, etc. There are Form1 and Form2 they need to be linked with the NextButton button. How do they communicate? What is written in the on_NextButton_clicked () function? I hope I have clearly formulated the question! :)

    1 answer 1

    I did something like this. Created the MainWindow class object (in your case, Dialog can be)

    MainWindow m;

    m.setWindowModality (Qt :: ApplicationModal);

    m.show ();