You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.




Wednesday, February 9th 2005, 11:04am

Handling Multiple Forms

hi friends,
I had multiple forms which have to be organised under a single form. I tried MDI but it does not support the resizing of the forms. Did u have any solutions pls send me the solution. Thanking U.




Wednesday, February 9th 2005, 11:51am

Handling Multiple Forms

I am trying to handle forms in the following manner

void MDI::modifyAccess()
accessmod *a=new accessmod(this,0,WDestructiveClose);
ws1 is the widget stack. By using this i can raise the widget but by doing so the MDI form freezes and not works any more. Pls give me sloution


Wednesday, February 9th 2005, 12:08pm

RE: Handling Multiple Forms

Edit : oops, this is OT. I didn't paid attention I was in the designer forum :rolleyes:

/*What do you mean by widget stack ? QWidgetStack, QWorkspace something else ?
Doing an MDI is quite simple using Qt : you create a QWorkspace in your main window class, and create all child windows as child of your workspace.
But I may not understand your problem... ?(*/

This post has been edited 1 times, last edit by "IrmatDen" (Feb 9th 2005, 12:14pm)


Wednesday, February 9th 2005, 12:27pm

RE: Handling Multiple Forms

I actually worked out using Work space but i got problems while minimizing the forms
The code i written for it is like this

QVBox* vb = new QVBox( this ); //layout
vb->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
this = new QWorkspace(vb);

later i replaced the QWorkSpace with QWidgetStack . Even so i am getting the problem
My problem is
for example there are two forms form1 and form2
First i created a form1 and added to the QWidget Stack
LAter i added the form2 and added it to it Now my visible form is form2
All these actions are performed when i click on the menu
Later if i want to make the form1 visible which already there in the Widget Stack i used raiseWidget() function in order to raise the Form. By using this my Form freezes and i have to kill the form .This is my problem Pls give me the solution