- All Implemented Interfaces:
QtObjectInterface
,Cloneable
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
-
Field Summary
Fields inherited from class io.qt.core.QEvent
staticMetaObject
-
Constructor Summary
ConstructorDescriptionQKeyEvent
(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) -
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
(boolean autoRepeat) SeeQKeyEvent::
autor protected final void
setCount
(short count) SeeQKeyEvent::
c protected final void
setKey
(int key) SeeQKeyEvent::
k protected final void
setNativeModifiers
(int nativeModifiers) SeeQKeyEvent::
nModifiers protected final void
setNativeScanCode
(int nativeScanCode) SeeQKeyEvent::
nScanCode protected final void
setNativeVirtualKey
(int nativeVirtualKey) SeeQKeyEvent::
nVirtualKey protected final void
SeeQKeyEvent::
txt final String
text()
Methods inherited from class io.qt.gui.QInputEvent
clone, setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, assign, ignore, isAccepted, registerEventType, registerEventType, set, setAccepted, spontaneous, toString, 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, short count) - Parameters:
type
-key
-modifiers
-text
-autorep
-count
-
-
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep, short count) - Parameters:
type
-key
-modifiers
-nativeScanCode
-nativeVirtualKey
-nativeModifiers
-text
-autorep
-count
-
-
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 = (String)null
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) 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 = (String)null
autorep = false
count = 1
-
-
Method Details
-
count
- Returns:
-
isAutoRepeat
- Returns:
-
key
- Returns:
-
matches
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
modifiers
- Overrides:
modifiers
in classQInputEvent
- Returns:
-
nativeModifiers
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
nativeScanCode
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
nativeVirtualKey
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
text
- Returns:
-
setAutoRepeat
See
QKeyEvent::
autor - Parameters:
autoRepeat
-
-
setCount
See
QKeyEvent::
c - Parameters:
count
-
-
setKey
See
QKeyEvent::
k - Parameters:
key
-
-
setNativeModifiers
See
QKeyEvent::
nModifiers - Parameters:
nativeModifiers
-
-
setNativeScanCode
See
QKeyEvent::
nScanCode - Parameters:
nativeScanCode
-
-
setNativeVirtualKey
See
QKeyEvent::
nVirtualKey - Parameters:
nativeVirtualKey
-
-
setText
See
QKeyEvent::
txt - Parameters:
text
-
-