Guest User

Untitled

a guest
Dec 18th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #include <QtGui/QApplication>
  2. #include "consoleobject.h"
  3. #include "questionnaire.h"
  4. #include "Wizard.h"
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication app(argc, argv);
  8. Wizard wizard;
  9. wizard.show();
  10. return app.exec();
  11. }
  12.  
  13.  
  14.  
  15. #include "Wizard.h"
  16. #include "datareader.h"
  17. #include "questionnaire.h"
  18. #include <QLabel>
  19. #include <QVBoxLayout>
  20. #include<iostream>
  21.  
  22. Wizard::Wizard(QWizard *parent)
  23. {
  24. done = false;
  25. interface = new QWizard;
  26. pageIntro = new QWizardPage;
  27. layout = new QVBoxLayout;
  28. pageIntro->setTitle("TESTINGGG");
  29. label = new QLabel("Voici le test des geeks 2.0");
  30. layout->addWidget(label);
  31. pageIntro->setLayout(layout);
  32. interface->addPage(pageIntro);
  33. }
  34.  
  35.  
  36.  
  37.  
  38. #ifndef WIZARD_H
  39. #define WIZARD_H
  40. #include <QWizard>
  41. class Geek;
  42. class Questionnaire;
  43. class QLabel;
  44. class QVBoxLayout;
  45. class Wizard : public QWizard {
  46. public:
  47. Wizard(QWizard *parent = 0 );
  48.  
  49. signals:
  50. void changeBestGeek(Geek *pGeek);
  51.  
  52. private:
  53. QWizard *interface;
  54. QWizardPage *pageIntro;
  55. QWizardPage *pagesQuestions;
  56. QVBoxLayout *layout;
  57. Questionnaire *mQuest;
  58. bool done;
  59. QLabel *label;
  60. };
  61.  
  62. #endif
Add Comment
Please, Sign In to add comment