4: QT -- How to create menu and trigger menu.
1: New Project --> Qt Widget Project --> Qt Gui Application
2: next --> next
3: Class Information --> Base Class(Select QMainWindow)
4: XX.ui --> Type Here --> Input menu name --> enter(name changed)
5: In the Action Editor --> double click -->Set the action name
6: Right the action name, go to slot(This step is to trigger the action)
7: Add code in the trigger function.
浙公网安备 33010602011771号