PDA

View Full Version : QMdiSubWindow maximization rudeness



Raccoon29
18th July 2008, 10:24
Hi all,

I have found a rude behavior from QMdiSubWindow when maximizing it.
If I maximize it manually by the expected button it maximizes mixing its title bar with the QMainWindow menu bar. Cool. Good looking and perfect integration.
Now, if I maximize it programmatically with :


QWidget* win=new QWidget;
win->setWindowState(win->windowState() ^ Qt::WindowFullScreen);

then that cool trick doesn't happen and the two bars keep being merged. Farewell good looking trick.
I post two example images to give the idea.
What could be the reason for this and is there a way to avoid it?

Thank you in advance

fullmetalcoder
18th July 2008, 20:37
have you tried QWidget::showMaximized() ? AFAIK it is way to go...

Raccoon29
21st July 2008, 16:40
Uhm, no, even with showMaximized, it does the same merged arrange...

Is this a my problem or it is your too? I mean, if you maximize a QMdiSubWindow programmatically, it does the same for you?
If so, mmh I fear that here we'll need another S.Wysota prophecy... :)

BTW: sorry for the late answer, but I've been a bit busy...