Hi,

I have some classes derived from QWidget. I want to display these one at a time, i.e.one screen, then the next screen, just like in a wizard.

This is the code I have :

Qt Code:
  1. QWizard wizard;
  2. wizard.addPage( new QWizardPage( new CanView( this ) ) );
  3. wizard.show();
To copy to clipboard, switch view to plain text mode 

The view gets displayed and then just exits? I normally show this view within a workspace as my app is mdi type.

Any reason for this?

Regards,
Steve