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