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
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