QKeyCombination¶
The QKeyCombination
class stores a combination of a key with optional modifiers. More…
Synopsis¶
Functions¶
def
__eq__
(rhs)def
__ne__
(rhs)def
key
()def
keyboardModifiers
()def
toCombined
()
Static functions¶
def
fromCombined
(combined)
Detailed Description¶
The QKeyCombination
class can be used to represent a combination of a key with zero or more keyboard modifiers.
See also
QKeySequence
- class PySide6.QtCore.QKeyCombination(modifiers[, key=Qt.Key_unknown])¶
PySide6.QtCore.QKeyCombination([key=Qt.Key_unknown])
- Parameters
modifiers –
KeyboardModifiers
key – Key
Constructs a QKeyCombination
object that represents the combination of key
with the modifiers modifiers
.
See also
Constructs a QKeyCombination
object that represents the key key
and no modifiers.
See also
- static PySide6.QtCore.QKeyCombination.fromCombined(combined)¶
- Parameters
combined – int
- Return type
Constructs a QKeyCombination
object by extracting the key and the modifiers out of combined
, which must be the result of a bitwise OR between a value of type Key
and value of type KeyboardModifiers
. toCombined()
can be used in order to produce valid values for combined
.
See also
Returns the key represented by this QKeyCombination
object.
See also
- PySide6.QtCore.QKeyCombination.keyboardModifiers()¶
- Return type
KeyboardModifiers
Returns the keyboard modifiers represented by this QKeyCombination
object.
See also
- PySide6.QtCore.QKeyCombination.__ne__(rhs)¶
- Parameters
- Return type
bool
- PySide6.QtCore.QKeyCombination.__eq__(rhs)¶
- Parameters
- Return type
bool
- PySide6.QtCore.QKeyCombination.toCombined()¶
- Return type
int
Returns an integer value obtained by applying a bitwise OR between the values of key()
and keyboardModifiers()
represented by this object. A QKeyCombination
object can be created from the returned integer value by using fromCombined()
.
See also
© 2022 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.