Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How do I open a Window so that...
S0nnen last edited by
Whenever I open a window using:
newWindow = new Window(this);
I either end up with a window that, so that I can't switch focus back to the parent window. Or I end up with a window, where I can switch focus back to the parent window. But the child window will always be on top. What I want is this:
I will be able to switch focus between the windows.
The window that is in focus will be on top.
If the parent window is closed, then so will the child window
Only one instance of each window can be opened at a time.
BelenMuñoz last edited by
I can only help you with that point:
[quote author="S0nnen" date="1358314033"]If the parent window is closed, then so will the child window
In my last project I did that including the second window as an attribute of the main window, so, you can change the "close" method to include the function secondWindow->close().
I hope it may help you.
Sam last edited by
If you create the child window with the parent as parent window, so when the parent window is closed it will close all the child windows as well.