QCollatorSortKey¶
The
QCollatorSortKey
class can be used to speed up string collation. More…

New in version 5.2.
Detailed Description¶
The
QCollatorSortKey
class is always created bysortKey()
and is used for fast strings collation, for example when collating many strings.
-
class
QCollatorSortKey
(other)¶ - param other
Constructs a copy of the
other
collator key.
-
PySide2.QtCore.QCollatorSortKey.
compare
(key)¶ - Parameters
key –
QCollatorSortKey
- Return type
int
Compares the key to
otherKey
. Returns a negative value if the key is less thanotherKey
, 0 if the key is equal tootherKey
or a positive value if the key is greater thanotherKey
.See also
operator
-
PySide2.QtCore.QCollatorSortKey.
__lt__
(rhs)¶ - Parameters
rhs –
QCollatorSortKey
- Return type
bool
-
PySide2.QtCore.QCollatorSortKey.
swap
(other)¶ - Parameters
other –
QCollatorSortKey
Swaps this collator key with
other
.