I want to implement a code when QMdiarea
is empty i.e. (has no QSubWindow
children).
For example:
is there an event or signal which happens when the QMdiarea
become empty?
I want to implement a code when QMdiarea
is empty i.e. (has no QSubWindow
children).
For example:
is there an event or signal which happens when the QMdiarea
become empty?
You can use QMdiArea::subWindowActivated(QMdiSubWindow *window)
signal to track the mentioned state. As docs say, when window
parameter is null means the last MDI child window is closed and the workspace is empty.