Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWizard
Forum Updated to NodeBB v4.3 + New Features

QWizard

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.3k Views 2 Watching
  • 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.
  • Q Offline
    Q Offline
    Qwentin
    wrote on last edited by
    #1

    Can somebody explain how to use QWizard, please.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You have several examples in the Qt documentation that shows how to use QWizard e.g. the Class Wizard Example

      Do you have any specific questions ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You have several examples in the Qt documentation that shows how to use QWizard e.g. the Class Wizard Example

        Do you have any specific questions ?

        Q Offline
        Q Offline
        Qwentin
        wrote on last edited by
        #3

        @SGaist
        As i unerstand for every page i must create a diferent class and then add them into my wizard or can i do it all in one clas? Can you show me an exapel how too make a next button. Sorry for that im an a beginer and it is a litel hard for me to undersatn it only from the documentation.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It depends on your page. You can have on common template that you can re-use to create your pages. Or on the other hand, you need some special thing to be done from your target

          You don't have to create that button yourself, QWizard will do it for you

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alex_malyu
            wrote on last edited by alex_malyu
            #5

            I will try provide some comments related to how I usually use it.

            1." QWizard inherits QDialog and represents a wizard.
            To create your own wizards, you can use these classes directly, or you can subclass them for more control."

            QWizard will manage pages and all the controls you need for transition from page, etc.
            You may or may not need to subclass QWizard depending on functionality you provide.
            I usually do it anyway, but often it is not required.
            There is no normally any need to add any custom controls (beside pages which are done separately)
            All required buttons are provided by QWizard.

            1. "Each page is a QWizardPage (a QWidget subclass). To create your own wizards, you can use these classes directly, or you can subclass them for more control."

            I usually subclass using QWidget template and promoting it in designer to QWizardPage.
            This lets me put controls on the pages in the designer.

            A you can see not much was added which is not available in documentation.
            A Trivial Example example from documentation shows you how it can be done without subclassing.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved