How to update mainwindow?
Solved
General and Desktop
-
Hi!
I have a main window (with widgets) that I want to keep using after a certain action (clicking New Project). I want the window to update/repaint with new widgets, but still have the same menu etc. How do I do this? Is there a better way to do this?
Hanna
-
Hi and welcome
Im not 100% sure what design you are after.if something like - you have a mainwindow and it has "pages"
with different set of widgets then
a QStackedwidget is easy to use for that.
You can set it all up in designer and simply switch page when you want
other widgets shown.
The main menu will stay same place.