QKeyEvent Class
(Qt3DInput::QKeyEvent)Header: | #include <QKeyEvent> |
qmake: | QT += 3dinput |
Since: | Qt 5.5 |
Instantiated By: | KeyEvent |
Inherits: | QObject |
Properties
|
|
- 1 property inherited from QObject
Public Functions
QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text = QString(), bool autorep = false, ushort count = 1) | |
QKeyEvent(const QKeyEvent &ke) | |
int | count() const |
bool | isAccepted() const |
bool | isAutoRepeat() const |
int | key() const |
bool | matches(QKeySequence::StandardKey key_) const |
int | modifiers() const |
quint32 | nativeScanCode() const |
void | setAccepted(bool accepted) |
QString | text() const |
QEvent::Type | type() const |
- 31 public functions inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 11 static public members inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
Property Documentation
accepted : bool
Access functions:
bool | isAccepted() const |
void | setAccepted(bool accepted) |
count : const int
Access functions:
int | count() const |
isAutoRepeat : const bool
Access functions:
bool | isAutoRepeat() const |
key : const int
Access functions:
int | key() const |
modifiers : const int
Access functions:
int | modifiers() const |
nativeScanCode : const quint32
Access functions:
quint32 | nativeScanCode() const |
text : const QString
Access functions:
QString | text() const |
Member Function Documentation
QKeyEvent::QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text = QString(), bool autorep = false, ushort count = 1)
Default constructs an instance of QKeyEvent.
QKeyEvent::QKeyEvent(const QKeyEvent &ke)
Copy constructor.
bool QKeyEvent::matches(QKeySequence::StandardKey key_) const
QEvent::Type QKeyEvent::type() const
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.