How to automatically maximize a subWindw in a QMdiArea
-
I can do it this way:
- call
QMdiArea::addSubWindow - and then
QMdiSubWindow::showMaximized
But one can see a flicker due to the 2 operations not being atomic.
None of the
Qt::WindowFlagsseems to help.I am using Qt 6.4.2 on Ubuntu 24.04.
@Audetto
https://www.qtcentre.org/threads/41101-QMdiArea-and-adding-sub-windowtry using setWindowState(Qt::WindowMaximized) on the sub window instance it self :
m_mdiArea->addSubWindow(Editor)->setWindowState(Qt::WindowMaximized) ;That worked in Qt in 2006, so I imagine it's the same two decades later...? :)
- call