Unsolved New page in main window
-
Hey!
I'm new to Qt so this question may be quite basic.
I want to create a PushButton to open a new page in my Main Window, like a sub-menu. I don't want to open a new window, i want to stay in the main window. Then I would like to add a PushButton to this new page wich leads me back to the first page (main menu).
Is this possible in Qt? I could not find a solution for my concern so far.Thank you!
-
Hi and welcome
Look at the stackedwidget. it has pages .)
http://doc.qt.io/qt-5/qstackedwidget.htmlHere is test project
https://www.dropbox.com/s/h0ev5ppyo3so9tb/mystacked.zip?dl=0shows how to use button to flip pages.
-
Hey, thank you very much for your quick answer! I will try my luck with the stackedwidget.