I am new to Qt and am have to make a GUI having multiple windows for this I found QStackedWidget
class using Qt designer tools.
I added QStackedWi
The QStackedWidget class provides a stack of widgets where only one widget is visible at a time.
Your are new to Qt so i suggest you to use Qt Designer:
You can drag&drop StackedWidget to your form, customized it then use arrows to go to next page and work on it too.
StackedWidget like a vector you can access to them via indexes.
ui->stackedWidget->setCurrentIndex(1);