PDA

View Full Version : MDI Parent -Child relation problem when porting from QT3 to QT4



noufalk
7th June 2007, 15:15
Hi everybody..

During the process of porting from QT 3.3.8 to QT 4.3.0, I am having the following problem. Some of the widgets of all Mdi Chlid windows are displayed as part of the workspace and not as part of a window. The flags that I used were,

m_pPWindow->reparent ( (QWidget*)getApp()->getWorkSpace(),

Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowSystemMenuHint , pt , false );

Here (QWidget*)getApp()->getWorkSpace() returns the Mdi workspace as the parent to the Child windows.

Inorder to fix this, I put a flag , Qt::Window. This will make the windows appear properly, but all are stand-alone windows. No Mdi child parent relation is maintained. How can I maintain the MDI child parent relationship?

Has anybody got any idea regarding this issue? Thanks in advance.