Wednesday, July 27, 2011

Qt::ApplicationShortcut

If you set the shortcut context to Qt::ApplicationShortcut (or maybe other types too) in a QAction, you have to add the action to a widget by calling QWidget::addAction() before it can be used. This doesn't mean that the action will be visible. Adding the action to the widget will just make the shortcut part of the widget's event loop.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.