问题
My application consists of one QMainWindow, and a nested QStackWidget containing the rest of the application "forms".
I would like to have a soft-key activated menu on each of those sub forms.
How is this possible?
回答1:
Hi sabbour here is the link,which gives you a detailed info, perhaps this could be very useful
回答2:
You need to create the Multiple widgets and associated menu items, when you load the widget in stack, you need to load your menu items accordingly in the mainwindow menu bar. Note your menu bar is constant and only menu items will be getting changed.
来源:https://stackoverflow.com/questions/4727709/how-can-i-have-a-dynamically-changing-menu-in-a-single-qmainwindow-multiple-nes