Add new comment

This is possible in QT also.
Before entering fullscreen mode you can use windowState() which returns current window state.
And then after exiting fullscreen you can restore state by using setWindowState()
So it's possible to switch from Qt::WindowFullScreen to Qt::WindowMaximized.

https://doc.qt.io/qt-5/qwindow.html#windowState
https://doc.qt.io/qt-5/qwindow.html#setWindowState
https://doc.qt.io/qt-5/qt.html#WindowState-enum