PDA

View Full Version : QMdiSubWindow not showing content when closed and opened again



woodtluk
12th March 2010, 10:15
Hi there

I'm new here in the forum and also quite new to Qt... so please be patient ;-)

I've a QMdiAre with different sub windows. The subwindows have the attribute WA_DeleteOnClose set to false. So I can close the window and get it back again with calling the slot showNormal() of the QMdiSubWindow.

The problem is that the window is empty, when it's closed and opened again.
I still can get the containing widget (a QGraphicsView) with the QMdiSubWindow::widget() function. But it is not shown in the sub window.

What do I need to do, to show the content of the window?

Thx
woodtluk

high_flyer
12th March 2010, 10:19
try calling the show() of the contained widget before showNormal().

woodtluk
12th March 2010, 10:54
Cool it's working...
Thaks a lot!