- All Implemented Interfaces:
QtObjectInterface
public class QKeyEvent extends QInputEvent
Describes a key event
Java wrapper for Qt class QKeyEvent
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description QKeyEvent(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)
QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep, short count)
Overloaded constructor forQKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, short, io.qt.gui.QInputDevice)
withdevice = io.qt.gui.QInputDevice.primaryKeyboard()
.QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep, short count, QInputDevice device)
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
QKeyEvent(QKeyEvent arg__1)
protected
QKeyEvent(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QKeyEvent
clone()
int
count()
boolean
isAutoRepeat()
int
key()
QKeyCombination
keyCombination()
boolean
matches(QKeySequence.StandardKey key)
Qt.KeyboardModifiers
modifiers()
int
nativeModifiers()
int
nativeScanCode()
int
nativeVirtualKey()
protected int
scanCode()
protected void
set(QKeyEvent other)
protected void
setAutoRepeat(boolean autoRepeat)
protected void
setCount(short count)
protected void
setScanCode(int scanCode)
protected void
setVirtualKey(int virtualKey)
String
text()
String
toString()
protected int
virtualKey()
Methods inherited from class io.qt.gui.QInputEvent
device, deviceType, set, setDevice, setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, ignore, isAccepted, isInputEvent, isPointerEvent, isSinglePointEvent, registerEventType, registerEventType, set, setAccepted, spontaneous, type
-
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, short count)Overloaded constructor for
QKeyEvent(io.qt.core.QEvent.Type, int, io.qt.core.Qt.KeyboardModifiers, int, int, int, java.lang.String, boolean, short, io.qt.gui.QInputDevice)
withdevice = io.qt.gui.QInputDevice.primaryKeyboard()
. -
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, io.qt.gui.QInputDevice)
with:
count = 1
device = io.qt.gui.QInputDevice.primaryKeyboard()
-
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, io.qt.gui.QInputDevice)
with:
autorep = false
count = 1
device = io.qt.gui.QInputDevice.primaryKeyboard()
-
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, io.qt.gui.QInputDevice)
with:
text = ""
autorep = false
count = 1
device = io.qt.gui.QInputDevice.primaryKeyboard()
-
QKeyEvent
public QKeyEvent(QEvent.Type type, int key, Qt.KeyboardModifiers modifiers, int nativeScanCode, int nativeVirtualKey, int nativeModifiers, String text, boolean autorep, short count, QInputDevice device) -
QKeyEvent
-
QKeyEvent
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
count
-
isAutoRepeat
-
key
-
keyCombination
-
matches
-
modifiers
- Overrides:
modifiers
in classQInputEvent
-
nativeModifiers
-
nativeScanCode
-
nativeVirtualKey
-
set
-
text
-
clone
- Overrides:
clone
in classQInputEvent
-
setAutoRepeat
-
setCount
-
setScanCode
-
scanCode
-
setVirtualKey
-
virtualKey
-
toString
- Overrides:
toString
in classQInputEvent
-