Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main.cpp
- #include <QtGui/QApplication>
- #include "GUI.h"
- int main(int argc, char *argv[]){
- QApplication a(argc, argv);
- GUI ui;
- ui.show();
- return a.exec();
- }
- ------------------------------------------------------------------------------------------------------------------
- GUI.h
- #ifndef GUI_H
- #define GUI_H
- #include <QtGui>
- #include <QtCore>
- class GUI : public QWizard{
- Q_OBJECT
- public:
- GUI();
- QWizardPage *createIntroPage();
- };
- #endif // GUI_H
- ------------------------------------------------------------------------------------------------------------------
- GUI.cpp
- #include "GUI.h"
- GUI::GUI() : QWizard(){
- this->setWindowTitle("Geek Test");
- this->setWizardStyle(QWizard::ModernStyle);
- this->addPage(createIntroPage())
- }
- QWizardPage* GUI::createIntroPage() {
- QWizardPage *page = new QWizardPage;
- page->setTitle("Geek Test!");
- page->setSubTitle("813NV3Nu 4u 7357 l3 PLu2 933k 4U m0nD3!");
- QLabel *label = new QLabel();
- label->setText(trUtf8("Ce petit test va déterminer avec précision le type de geek que vous êtes! \n\nAppuyez sur le boutton [SUIVANT] pour commencer le test :-)"));
- label->setWordWrap(true);
- QVBoxLayout *layout = new QVBoxLayout;
- layout->addWidget(label);
- page->setLayout(layout);
- return page;
- }
Add Comment
Please, Sign In to add comment