简体   繁体   中英

Use Preferences menu item

I am building an application on Mac in Qt. I am having problems in using preferences menu item already present there.

If possible please provide some Sample code which will enable me to have the QAction on click of Preferences menu item.

Any Help is appreciated.

You can do it in Qt Designer (and inside Qt Creator too)

alt text http://img683.imageshack.us/img683/4410/screenshot20091225at407.png

or in code using setMenuRole() method with QAction::PreferencesRole as parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM