Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QtGui/QApplication>
- #include "consoleobject.h"
- #include "questionnaire.h"
- #include "Wizard.h"
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- Wizard wizard;
- wizard.show();
- return app.exec();
- }
- #include "Wizard.h"
- #include "datareader.h"
- #include "questionnaire.h"
- #include <QLabel>
- #include <QVBoxLayout>
- #include<iostream>
- Wizard::Wizard(QWizard *parent)
- {
- done = false;
- interface = new QWizard;
- pageIntro = new QWizardPage;
- layout = new QVBoxLayout;
- pageIntro->setTitle("TESTINGGG");
- label = new QLabel("Voici le test des geeks 2.0");
- layout->addWidget(label);
- pageIntro->setLayout(layout);
- interface->addPage(pageIntro);
- }
- #ifndef WIZARD_H
- #define WIZARD_H
- #include <QWizard>
- class Geek;
- class Questionnaire;
- class QLabel;
- class QVBoxLayout;
- class Wizard : public QWizard {
- public:
- Wizard(QWizard *parent = 0 );
- signals:
- void changeBestGeek(Geek *pGeek);
- private:
- QWizard *interface;
- QWizardPage *pageIntro;
- QWizardPage *pagesQuestions;
- QVBoxLayout *layout;
- Questionnaire *mQuest;
- bool done;
- QLabel *label;
- };
- #endif
Add Comment
Please, Sign In to add comment