PDA

View Full Version : QTworkspace a la MDI



:db:sStrong
10th April 2007, 13:49
Hi all
I have a problem with QWorkspece child windows(MDI windows)
I have a workspace and i have two child windows(m_myclassView1, m_myclassView2)
When i maximize one window and then close the window, the two child windows will be closed but i see still
the caption of one of the window(the window which was not maximized) at the title bar.

Can someone help me what am i doing wrong?


void MyClass::closeEvent( QCloseEvent *e )
{

if ( m_myclassView1.View() )
m_myclassView1.View()->close();

if ( m_myclassView2.View() )
m_myclassView2.View()->close();
}

QWidget::closeEvent(e);
}

wysota
13th April 2007, 12:46
What is MyClass? The MDI child or the workspace itself?