Qt 4.8
|
#include <qwindowsysteminterface_qpa_p.h>
Public Functions | |
KeyEvent (QWidget *w, ulong time, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1) | |
KeyEvent (QWidget *w, ulong time, QEvent::Type t, int k, Qt::KeyboardModifiers mods, quint32 nativeSC, quint32 nativeVK, quint32 nativeMods, const QString &text=QString(), bool autorep=false, ushort count=1) | |
Public Functions inherited from QWindowSystemInterfacePrivate::UserEvent | |
UserEvent (QWidget *w, ulong time, EventType t) | |
Public Functions inherited from QWindowSystemInterfacePrivate::WindowSystemEvent | |
WindowSystemEvent (EventType t) | |
virtual | ~WindowSystemEvent () |
Public Variables | |
int | key |
This property holds the code of the key that was pressed or released. More... | |
QEvent::Type | keyType |
Qt::KeyboardModifiers | modifiers |
This property holds the keyboard modifier flags that existed immediately before the event occurred. More... | |
quint32 | nativeModifiers |
quint32 | nativeScanCode |
quint32 | nativeVirtualKey |
bool | repeat |
ushort | repeatCount |
QString | unicode |
Public Variables inherited from QWindowSystemInterfacePrivate::UserEvent | |
unsigned long | timestamp |
QWeakPointer< QWidget > | widget |
Public Variables inherited from QWindowSystemInterfacePrivate::WindowSystemEvent | |
EventType | type |
Definition at line 155 of file qwindowsysteminterface_qpa_p.h.
|
inline |
Definition at line 157 of file qwindowsysteminterface_qpa_p.h.
|
inline |
Definition at line 161 of file qwindowsysteminterface_qpa_p.h.
int KeyEvent::key |
This property holds the code of the key that was pressed or released.
See Qt::Key{Qt.Key} for the list of keyboard codes. These codes are independent of the underlying window system. Note that this function does not distinguish between capital and non-capital letters, use the text() function (returning the Unicode text the key generated) for this purpose.
A value of either 0 or Qt::Key_unknown{Qt.Key_Unknown} means that the event is not the result of a known key; for example, it may be the result of a compose sequence, a keyboard macro, or due to key event compression.
Definition at line 167 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
QEvent::Type QWindowSystemInterfacePrivate::KeyEvent::keyType |
Definition at line 172 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
int KeyEvent::modifiers |
This property holds the keyboard modifier flags that existed immediately before the event occurred.
It contains a bitwise combination of:
For example, to react to a Shift key + Enter key combination:
Definition at line 171 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
quint32 QWindowSystemInterfacePrivate::KeyEvent::nativeModifiers |
Definition at line 175 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
quint32 QWindowSystemInterfacePrivate::KeyEvent::nativeScanCode |
Definition at line 173 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
quint32 QWindowSystemInterfacePrivate::KeyEvent::nativeVirtualKey |
Definition at line 174 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
bool QWindowSystemInterfacePrivate::KeyEvent::repeat |
Definition at line 169 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
ushort QWindowSystemInterfacePrivate::KeyEvent::repeatCount |
Definition at line 170 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().
QString QWindowSystemInterfacePrivate::KeyEvent::unicode |
Definition at line 168 of file qwindowsysteminterface_qpa_p.h.
Referenced by qt_cleanup().