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. So I'm making an installer...

So I'm making an installer...

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 2.1k Views
  • 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.
  • P Offline
    P Offline
    pditty8811
    wrote on last edited by
    #1

    So I'm making an installer... You know, the basic disclaimer, click next, progress bar, etc.. But my question is, how do I change the window to the next step when the button widget clicked signal is executed? How do I change windows? How do I create different windows?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jerome96
      wrote on last edited by
      #2

      I don't know if its the best way but I do it like this.
      I hope I understood you well:

      Link a slot to the signal.
      In the slot delete the stuff you don't need for example if you created a Label(QLabel *label) you don't need anymore:

      @delete label;@

      Now you can add new stuff like QPushButtons, QLabels etc. :

      @button = new QPushButton("Hello",parent);@

      I hope this helps you :)

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        Hi,

        You can use the more convenient "qwizard":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizard.html and "qwizardpage":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizardpage.html
        Check the "licensewizard":http://qt-project.org/doc/qt-4.8/dialogs-licensewizard.html and "classwizard":http://qt-project.org/doc/qt-4.8/dialogs-classwizard.html examples.

        157

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pditty8811
          wrote on last edited by
          #4

          [quote author="Jerome96" date="1388316243"]I don't know if its the best way but I do it like this.
          I hope I understood you well:

          Link a slot to the signal.
          In the slot delete the stuff you don't need for example if you created a Label(QLabel *label) you don't need anymore:

          @delete label;@

          Now you can add new stuff like QPushButtons, QLabels etc. :

          @button = new QPushButton("Hello",parent);@

          I hope this helps you :)[/quote]

          This is a great idea. Not sure why I didn't think of that.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pditty8811
            wrote on last edited by
            #5

            [quote author="Jerome96" date="1388316243"]I don't know if its the best way but I do it like this.
            I hope I understood you well:

            Link a slot to the signal.
            In the slot delete the stuff you don't need for example if you created a Label(QLabel *label) you don't need anymore:

            @delete label;@

            Now you can add new stuff like QPushButtons, QLabels etc. :

            @button = new QPushButton("Hello",parent);@

            I hope this helps you :)[/quote]

            How do I hide certain widgets in the designer mode? Because using your method I have widgets piling over other widgets and its crowded.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Skyrpex
              wrote on last edited by
              #6

              Please, don't go that way. Instead, use these classes:

              [quote author="p3c0" date="1388322603"]Hi,

              You can use the more convenient "qwizard":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizard.html and "qwizardpage":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizardpage.html
              Check the "licensewizard":http://qt-project.org/doc/qt-4.8/dialogs-licensewizard.html and "classwizard":http://qt-project.org/doc/qt-4.8/dialogs-classwizard.html examples.[/quote]

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pditty8811
                wrote on last edited by
                #7

                [quote author="Skyrpex" date="1388414134"]Please, don't go that way. Instead, use these classes:

                [quote author="p3c0" date="1388322603"]Hi,

                You can use the more convenient "qwizard":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizard.html and "qwizardpage":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizardpage.html
                Check the "licensewizard":http://qt-project.org/doc/qt-4.8/dialogs-licensewizard.html and "classwizard":http://qt-project.org/doc/qt-4.8/dialogs-classwizard.html examples.[/quote]

                [/quote]

                But I don't understand the QWizard class.

                1 Reply Last reply
                0
                • p3c0P Offline
                  p3c0P Offline
                  p3c0
                  Moderators
                  wrote on last edited by
                  #8

                  Follow the "licensewizard":http://qt-project.org/doc/qt-4.8/dialogs-licensewizard.html to start with. The "qwizard":http://qt-project.org/doc/qt-5.0/qtwidgets/qwizard.html#details doc is nicely documented.

                  157

                  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