43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qkeysequence.h>
45 #include <QtCore/qobject.h>
60 Q_PROPERTY(
bool autoRepeat READ autoRepeat WRITE setAutoRepeat)
65 const char *member =
nullptr,
const char *ambiguousMember =
nullptr,
68 const char *member =
nullptr,
const char *ambiguousMember =
nullptr,
72 template<
typename Functor>
76 template<
typename Functor>
80 template<
typename Functor,
typename FunctorAmbiguous>
83 FunctorAmbiguous functorAmbiguous,
85 template<
typename Functor,
typename FunctorAmbiguous>
88 const QObject *context2, FunctorAmbiguous functorAmbiguous,
91 template<
typename Functor>
95 template<
typename Functor>
99 template<
typename Functor,
typename FunctorAmbiguous>
102 FunctorAmbiguous functorAmbiguous,
104 template<
typename Functor,
typename FunctorAmbiguous>
107 const QObject *context2, FunctorAmbiguous functorAmbiguous,
110 template<
typename Func1>
118 template<
class Obj1,
typename Func1>
120 const Obj1 *object1, Func1
slot1,
127 template<
class Obj1,
typename Func1,
typename Func2>
129 const Obj1 *object1, Func1
slot1, Func2
slot2,
137 template<
class Obj1,
typename Func1,
class Obj2,
typename Func2>
139 const Obj1 *object1, Func1
slot1,
140 const Obj2 *object2, Func2
slot2,
150 template<
typename Func1>
158 template<
class Obj1,
typename Func1>
160 const Obj1 *object1, Func1
slot1,
167 template<
class Obj1,
typename Func1,
typename Func2>
169 const Obj1 *object1, Func1
slot1, Func2
slot2,
177 template<
class Obj1,
typename Func1,
class Obj2,
typename Func2>
179 const Obj1 *object1, Func1
slot1,
180 const Obj2 *object2, Func2
slot2,
199 void setEnabled(
bool enable);
200 bool isEnabled()
const;
205 void setAutoRepeat(
bool on);
206 bool autoRepeat()
const;
208 #if QT_DEPRECATED_SINCE(6,0)
215 #if QT_DEPRECATED_SINCE(6,0)
219 template<
typename T = QW
idget*>
220 inline T parentWidget()
const
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
The QObject class is the base class of all Qt objects.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
virtual bool event(QEvent *event)
The QShortcut class is used to create keyboard shortcuts.
QShortcut(const QKeySequence &key, QObject *parent, const Obj1 *object1, Func1 slot1, Qt::ShortcutContext context=Qt::WindowShortcut, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj1 * >::Value >::type *=0)
QShortcut(const QKeySequence &key, QObject *parent, const Obj1 *object1, Func1 slot1, Func2 slot2, Qt::ShortcutContext context=Qt::WindowShortcut, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj1 * >::Value >::type *=0)
void activatedAmbiguously()
QShortcut(QKeySequence::StandardKey key, QObject *parent, Func1 slot1, Qt::ShortcutContext context=Qt::WindowShortcut)
QShortcut(QKeySequence::StandardKey key, QObject *parent, const Obj1 *object1, Func1 slot1, Func2 slot2, Qt::ShortcutContext context=Qt::WindowShortcut, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj1 * >::Value >::type *=0)
QShortcut(const QKeySequence &key, QObject *parent, Func1 slot1, Qt::ShortcutContext context=Qt::WindowShortcut)
QShortcut(QKeySequence::StandardKey key, QObject *parent, const Obj1 *object1, Func1 slot1, Qt::ShortcutContext context=Qt::WindowShortcut, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj1 * >::Value >::type *=0)
QShortcut(const QKeySequence &key, QObject *parent, const Obj1 *object1, Func1 slot1, const Obj2 *object2, Func2 slot2, Qt::ShortcutContext context=Qt::WindowShortcut, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj1 * >::Value >::type *=0, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj2 * >::Value >::type *=0)
QShortcut(QKeySequence::StandardKey key, QObject *parent, const Obj1 *object1, Func1 slot1, const Obj2 *object2, Func2 slot2, Qt::ShortcutContext context=Qt::WindowShortcut, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj1 * >::Value >::type *=0, typename std::enable_if< QtPrivate::IsPointerToTypeDerivedFromQObject< Obj2 * >::Value >::type *=0)
The QString class provides a Unicode character string.
The QWindow class represents a window in the underlying windowing system.
QT_REQUIRE_CONFIG(shortcut)
auto it unsigned count const
void slot1(const QString &a)
void slot2(const QString &a, const QString &b)
#define Q_DECL_DEPRECATED
GLenum GLenum GLsizei const GLuint GLboolean enabled
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent