How can I have a dynamically changing menu in a single QMainWindow, multiple nested QWidgets application on Symbian Qt?

烈酒焚心 提交于 2019-12-12 01:35:26

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!