PDA

View Full Version : Help about Qt 4.5, how to change form??



webquinty
22nd July 2009, 13:41
Hello,

I have developed a application that it has several forms.

At this moment, I use the follow code to change form:


pagecurve *pCURVE = new pagecurve();
pCURVE->setAttribute(Qt::WA_DeleteOnClose);
pCURVE->show();
pACTUAL_FORM->close();


Well, as you can see, I create a new object of pagecurve class, and I set new attribute, Qt::WA_DeleteOnClose. After set attribute, I show the new class, and close the actual form.

I do not know if this is the best way to do it.
Could somebody explain me if this is the correct way to close and open forms, or there is other way to do the same??

Best reagards.