- All Implemented Interfaces:
QtObjectInterface
Describes a key event
Java wrapper for Qt class QKeyEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QEvent
QEvent.Type
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Fields inherited from class io.qt.core.QEvent
staticMetaObject
-
Constructor Summary
ModifierConstructorDescriptionQKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers) Overloaded constructor forQKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, short)
QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers) QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text) QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep) Overloaded constructor forQKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, short)
withcount = 1
.QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep, short count) QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, String text) Overloaded constructor forQKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, short)
QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, String text, boolean autorep) Overloaded constructor forQKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, short)
withcount = 1
.QKeyEvent
(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, String text, boolean autorep, short count) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
count()
final boolean
final int
key()
final boolean
final Qt.KeyboardModifiers
final int
final int
final int
protected final void
setAutoRepeat
(short autoRepeat) protected final void
setCount
(short count) protected final void
setKey
(int key) protected final void
setNativeModifiers
(int nativeModifiers) protected final void
setNativeScanCode
(int nativeScanCode) protected final void
setNativeVirtualKey
(int nativeVirtualKey) protected final void
final String
text()
toString()
Methods inherited from class io.qt.gui.QInputEvent
setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, ignore, isAccepted, registerEventType, registerEventType, set, setAccepted, spontaneous, type
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, String text, boolean autorep) Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, short)
withcount = 1
. -
QKeyEvent
Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, short)
with:
autorep = false
count = 1
-
QKeyEvent
Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, java.lang.String, boolean, short)
with:
text = ""
autorep = false
count = 1
-
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, String text, boolean autorep, short count) -
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep) Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, short)
withcount = 1
. -
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text) Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, short)
with:
autorep = false
count = 1
-
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers) Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, short)
with:
text = ""
autorep = false
count = 1
-
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep, short count) -
QKeyEvent
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
count
-
isAutoRepeat
-
key
-
matches
-
modifiers
- Overrides:
modifiers
in classQInputEvent
-
nativeModifiers
-
nativeScanCode
-
nativeVirtualKey
-
text
-
setAutoRepeat
-
setCount
-
setKey
-
setNativeModifiers
-
setNativeScanCode
-
setNativeVirtualKey
-
setText
-
toString
- Overrides:
toString
in classQInputEvent
-