Skip to content

PythonQt.QtCore.QCollatorSortKey · declarations 001

Back to PythonQt.QtCore.QCollatorSortKey

compare

compare(key: Any) -> int

X.compare(key) -> int

Supplemental documentation: Qt 5 reference:

int QCollatorSortKey::compare(const QCollatorSortKey \&otherKey) const

Compares this key to otherKey.

Returns a negative value if the key is less than otherKey, 0 if the key is equal to otherKey or a positive value if the key is greater than otherKey.

See also operator\<().

Upstream PySide2 reference signatures (binding differences may apply):

compare(self, key: PySide2.QtCore.QCollatorSortKey) -> int

Source: https://doc.qt.io/archives/qt-5.15/qcollatorsortkey.html#compare

operator_assign

operator_assign(other: Any) -> Any

X.operator_assign(other) -> PythonQt.QtCore.QCollatorSortKey

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QCollatorSortKey::swap(QCollatorSortKey \&other)

Swaps this collator key with other.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtCore.QCollatorSortKey) -> None

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