tags:

views:

45

answers:

1

Hello,

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.

Thanks, Rahul

A: 

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

alt text

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

kemiisto