Skip to content

PythonQt.QtGui.QKeySequence · declarations 002

Back to PythonQt.QtGui.QKeySequence

PreviousChild instance-attribute

PreviousChild: Any

Print instance-attribute

Print: Any

Redo instance-attribute

Redo: Any

Refresh instance-attribute

Refresh: Any

Replace instance-attribute

Replace: Any

SaveAs instance-attribute

SaveAs: Any

SelectAll instance-attribute

SelectAll: Any

SelectEndOfBlock instance-attribute

SelectEndOfBlock: Any

SelectEndOfDocument instance-attribute

SelectEndOfDocument: Any

SelectEndOfLine instance-attribute

SelectEndOfLine: Any

SelectNextChar instance-attribute

SelectNextChar: Any

SelectNextLine instance-attribute

SelectNextLine: Any

SelectNextPage instance-attribute

SelectNextPage: Any

SelectNextWord instance-attribute

SelectNextWord: Any

SelectPreviousChar instance-attribute

SelectPreviousChar: Any

SelectPreviousLine instance-attribute

SelectPreviousLine: Any

SelectPreviousPage instance-attribute

SelectPreviousPage: Any

SelectPreviousWord instance-attribute

SelectPreviousWord: Any

SelectStartOfBlock instance-attribute

SelectStartOfBlock: Any

SelectStartOfDocument instance-attribute

SelectStartOfDocument: Any

SelectStartOfLine instance-attribute

SelectStartOfLine: Any

SequenceFormat instance-attribute

SequenceFormat: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

SequenceMatch instance-attribute

SequenceMatch: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

StandardKey instance-attribute

StandardKey: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Undo instance-attribute

Undo: Any

UnknownKey instance-attribute

UnknownKey: Any

ZoomIn instance-attribute

ZoomIn: Any

ZoomOut instance-attribute

ZoomOut: Any

count

count() -> int

X.count() -> int

Supplemental documentation: Qt 5 reference:

int QKeySequence::count() const

Returns the number of keys in the key sequence. The maximum is 4.

Upstream PySide2 reference signatures (binding differences may apply):

count(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#count

fromString

fromString(str: str, format: Any) -> Any

X.fromString(str, format) -> PythonQt.QtGui.QKeySequence

Supplemental documentation: Qt 5 reference:

[static] QKeySequence QKeySequence::fromString(const QString \&str, QKeySequence::SequenceFormat format \= PortableText)

Return a QKeySequence from the string str based on format.

This function was introduced in Qt 4.1.

See also toString().

Upstream PySide2 reference signatures (binding differences may apply):

fromString(str: str, format: PySide2.QtGui.QKeySequence.SequenceFormat=...) -> PySide2.QtGui.QKeySequence

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#fromString

isEmpty

isEmpty() -> bool

X.isEmpty() -> bool

Supplemental documentation: Qt 5 reference:

bool QKeySequence::isEmpty() const

Returns true if the key sequence is empty; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isEmpty(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#isEmpty

keyBindings

keyBindings(key: Any) -> tuple

X.keyBindings(key) -> tuple

Supplemental documentation: Qt 5 reference:

[static] QList\<QKeySequence> QKeySequence::keyBindings(QKeySequence::StandardKey key)

Returns a list of key bindings for the given key. The result of calling this function will vary based on the target platform. The first element of the list indicates the primary shortcut for the given platform. If the result contains more than one result, these can be considered alternative shortcuts on the same platform for the given key.

This function was introduced in Qt 4.2.

Upstream PySide2 reference signatures (binding differences may apply):

keyBindings(key: PySide2.QtGui.QKeySequence.StandardKey) -> typing.List[PySide2.QtGui.QKeySequence]

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#keyBindings

listFromString

listFromString(str: str, format: Any) -> tuple

X.listFromString(str, format) -> tuple

Supplemental documentation: Qt 5 reference:

[static] QList\<QKeySequence> QKeySequence::listFromString(const QString \&str, QKeySequence::SequenceFormat format \= PortableText)

Return a list of QKeySequence from the string str based on format.

This function was introduced in Qt 5.1.

See also fromString() and listToString().

Upstream PySide2 reference signatures (binding differences may apply):

listFromString(str: str, format: PySide2.QtGui.QKeySequence.SequenceFormat=...) -> typing.List[PySide2.QtGui.QKeySequence]

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#listFromString

listToString

listToString(list: Any, format: Any) -> str

X.listToString(list, format) -> str

Supplemental documentation: Qt 5 reference:

[static] QString QKeySequence::listToString(const QList\<QKeySequence> \&list, QKeySequence::SequenceFormat format \= PortableText)

Return a string representation of list based on format.

This function was introduced in Qt 5.1.

See also toString() and listFromString().

Upstream PySide2 reference signatures (binding differences may apply):

listToString(list: typing.Sequence[PySide2.QtGui.QKeySequence], format: PySide2.QtGui.QKeySequence.SequenceFormat=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#listToString

matches

matches(seq: Any) -> Any

X.matches(seq)

Supplemental documentation: Qt 5 reference:

QKeySequence::SequenceMatch QKeySequence::matches(const QKeySequence \&seq) const

Matches the sequence with seq. Returns ExactMatch if successful, PartialMatch if seq matches incompletely, and NoMatch if the sequences have nothing in common. Returns NoMatch if seq is shorter.

Upstream PySide2 reference signatures (binding differences may apply):

matches(self, seq: PySide2.QtGui.QKeySequence) -> PySide2.QtGui.QKeySequence.SequenceMatch

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#matches

mnemonic

mnemonic(text: str) -> Any

X.mnemonic(text) -> PythonQt.QtGui.QKeySequence

Supplemental documentation: Qt 5 reference:

[static] QKeySequence QKeySequence::mnemonic(const QString \&text)

Returns the shortcut key sequence for the mnemonic in text, or an empty key sequence if no mnemonics are found.

For example, mnemonic("E\&xit") returns Qt::ALT+Qt::Key_X, mnemonic("\&Quit") returns ALT+Key_Q, and mnemonic("Quit") returns an empty QKeySequence.

We provide a list of common mnemonics in English. At the time of writing, Microsoft and Open Group do not appear to have issued equivalent recommendations for other languages.

Upstream PySide2 reference signatures (binding differences may apply):

mnemonic(text: str) -> PySide2.QtGui.QKeySequence

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#mnemonic

operator_subscript

operator_subscript(i: Any) -> int

X.operator_subscript(i) -> int

readFrom

readFrom(out: Any) -> Any

X.readFrom(out)

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QKeySequence::swap(QKeySequence \&other)

Swaps key sequence other with this key sequence. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtGui.QKeySequence) -> None

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#swap

toString

toString(format: Any) -> str

X.toString(format) -> str

Supplemental documentation: Qt 5 reference:

QString QKeySequence::toString(QKeySequence::SequenceFormat format \= PortableText) const

Return a string representation of the key sequence, based on format.

For example, the value Qt::CTRL+Qt::Key_O results in "Ctrl+O". If the key sequence has multiple key codes, each is separated by commas in the string returned, such as "Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated using QObject::tr() in the "QShortcut" context.

If the key sequence has no keys, an empty string is returned.

On macOS, the string returned resembles the sequence that is shown in the menu bar if format is QKeySequence::NativeText; otherwise, the string uses the "portable" format, suitable for writing to a file.

This function was introduced in Qt 4.1.

See also fromString().

Upstream PySide2 reference signatures (binding differences may apply):

toString(self, format: PySide2.QtGui.QKeySequence.SequenceFormat=...) -> str

Source: https://doc.qt.io/archives/qt-5.15/qkeysequence.html#toString