![]() |
Home · Modules · Classes · Namespaces · Functions |
The QxtGlobalShortcut class provides a global shortcut aka "hotkey". More...
#include <QxtGlobalShortcut>
Inherits QObject.
The QxtGlobalShortcut class provides a global shortcut aka "hotkey".
A global shortcut triggers even if the application is not active. This makes it easy to implement applications that react to certain shortcuts still if some other application is active or if the application is for example minimized to the system tray.
Example usage:
QxtGlobalShortcut* shortcut = new QxtGlobalShortcut(window); connect(shortcut, SIGNAL(activated()), window, SLOT(toggleVisibility())); shortcut->setShortcut(QKeySequence("Ctrl+Shift+F12"));
Note: Since Qxt 0.6 QxtGlobalShortcut no more requires QxtApplication.
Constructs a new QxtGlobalShortcut with parent.
Constructs a new QxtGlobalShortcut with shortcut and parent.
Destructs the QxtGlobalShortcut.
This signal is emitted when the user types the shortcut's key sequence.
See also shortcut.
Sets the shortcut disabled.
See also enabled.
See also isEnabled().
See also shortcut().
See also setShortcut().
Copyright © 2007-2010 Qxt Foundation |
Qxt 0.6.1 |