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.

posted @ 2011-10-18 13:18  lcryby  阅读(170)  评论(0)    收藏  举报