Hi,
how can i set up a shortcut for the settings/options in the menu, or better in QAction?
For example the new default shortcut is QKeySequence::New...
This is important because on Mac Os the default hotkey for settings is ⌘ + ,
anyone?
Hi,
how can i set up a shortcut for the settings/options in the menu, or better in QAction?
For example the new default shortcut is QKeySequence::New...
This is important because on Mac Os the default hotkey for settings is ⌘ + ,
anyone?
Last edited by 0xl33t; 21st July 2009 at 22:17.
What's about QAction::setShortcut()?
sorry for my bad english, but i mean, is there a standard shortcut for the settings, provided by QT QKeySequence?
Btw. i solved this "problem" because qt automatically detects the settings action:
settingsAction = new QAction(tr("&Settings..."), this);
and sets the right shortcut for mac os...
So QT is very cute xD
OK, there is not. I wonder why...
It's not automatic, it's because of your "&" in the action text.Btw. i solved this "problem" because qt automatically detects the settings action:
settingsAction = new QAction(tr("&Settings..."), this);
and sets the right shortcut for mac os...
Bookmarks