Hi all,

I'm new to Qt programming so please bare with me. I'm currently working with some code that has 2 top level windows open simultaneously (lets name them window 1 and window 2). The control flow of the software design demands that window 1 acts as a pseudo parent to window 2 and therefore window 2 should close every time window 1 is closed. However, the opposite will not be true. Since both windows are independent of each other, is there a way of achieving this or am I banging my head against a wall here?

Note: Unfortunately making window a child widget to window one is not possible due to the way the code has already been developed.

Thanks in advance.