[SOLVED] Best way to create main menu for a program in Qt Creator 5.5.
I am trying to create a simple main menu with simple buttons, where for example you have buttons for Start, Info, Options and Exit. And then pressing these buttons will lead you to yet another menu where you have for example Practice, Test, etc.
However I am not sure how should i approach this problem. The only answer that I have found is to open up new windows for each button click, but instead of that I would like the button press just to change the things in the current window (without opening a new one).
Should I create the complete UI in code and just hide/show the elements I want to, or is there someway to switch between .ui files in the same window?
So I have been searching from everywhere to get an answer to this question without any results.
Thank you for your time and help :)
Hi and welcome
Such design could be made using a Stacked Widget.
It will give you sort of pages where you can have your controls on and you
do not have to write the show/hide logic yourself.
@mrjj Yes! This was exactly what i was looking for!
I'll try that out, thank you so much for your help! :)