Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Wizard

    General and Desktop
    2
    2
    146
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      123456789 last edited by

      where is error?

      import QtQuick 2.0
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.0
      import QtQuick.Window 2.3
      import QtQuick.Controls.Styles 1.4
      import QtQml 2.2

      Page{
      QWizardPage *createIntroPage()
      {
      QWizardPage *page = new QWizardPage;
      page->setTitle("Introduction");

      QLabel *label = new QLabel("This wizard will help you register your copy "
                                 "of Super Product Two.");
      label->setWordWrap(true);
      
      QVBoxLayout *layout = new QVBoxLayout;
      layout->addWidget(label);
      page->setLayout(layout);
      
      return page;
      

      }

      QWizardPage *createRegistrationPage()
      {
      ...
      }

      QWizardPage *createConclusionPage()
      {
      ...
      }

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);

      #ifndef QT_NO_TRANSLATION
      QString translatorFileName = QLatin1String("qt_");
      translatorFileName += QLocale::system().name();
      QTranslator *translator = new QTranslator(&app);
      if (translator->load(translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
      app.installTranslator(translator);
      #endif

      QWizard wizard;
      wizard.addPage(createIntroPage());
      wizard.addPage(createRegistrationPage());
      wizard.addPage(createConclusionPage());
      
      wizard.setWindowTitle("Trivial Wizard");
      wizard.show();
      
      return app.exec();
      

      }

      }

      1 Reply Last reply Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        Did you try this as QML Program ? What kind of project you created for this ?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post