This is from memory so forgive me if it is not perfect
Pro file
	
	- ... 
- HEADERS += wizard.h 
- SOURCES += wizard.cpp 
- FORMS += wizard.ui 
- ... 
        ...
HEADERS += wizard.h
SOURCES += wizard.cpp
FORMS += wizard.ui
...
To copy to clipboard, switch view to plain text mode 
  Wizard.h
	
	- ... 
- namespace Ui { 
-   class Wizard; 
- }; 
-   
- class Wizard: public QWizard 
- { 
-   Q_OBJECT 
- public: 
-   ~Wizard(); 
- ... 
- private: 
-   Ui::Wizard *ui; 
- } 
        ...
namespace Ui {
  class Wizard;
};
class Wizard: public QWizard
{
  Q_OBJECT
public:
  Wizard(QWidget *p = 0);
  ~Wizard();
...
private:
  Ui::Wizard *ui;
}
To copy to clipboard, switch view to plain text mode 
  Wizard.cpp
	
	- #include "wizard.cpp" 
- #include "ui_wizard.h" 
-   
-   QWizard(p),  
-   ui(new Ui::Wizard) 
- { 
-   ui->setupUi(this); 
- } 
-   
- ~Wizard()  
- { 
-   delete ui; 
- } 
        #include "wizard.cpp"
#include "ui_wizard.h"
Wizard(QWidget *p):
  QWizard(p), 
  ui(new Ui::Wizard)
{
  ui->setupUi(this);
}
~Wizard() 
{
  delete ui;
}
To copy to clipboard, switch view to plain text mode 
  
				
			
Bookmarks