Hello,

I have developed a application that it has several forms.

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

Qt Code:
  1. pagecurve *pCURVE = new pagecurve();
  2. pCURVE->setAttribute(Qt::WA_DeleteOnClose);
  3. pCURVE->show();
  4. pACTUAL_FORM->close();
To copy to clipboard, switch view to plain text mode 

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.