QCollatorSortKeyclass can be used to speed up string collation. 更多 …
New in version 5.2.
QCollatorSortKeyclass is always created bysortKey()and is used for fast strings collation, for example when collating many strings.
QCollatorSortKey
(
other
)
¶
other
–
QCollatorSortKey
PySide2.QtCore.QCollatorSortKey.
compare
(
key
)
¶
key
–
QCollatorSortKey
int
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
.
另请参阅
operator
PySide2.QtCore.QCollatorSortKey.
__lt__
(
rhs
)
¶
rhs
–
QCollatorSortKey
bool
PySide2.QtCore.QCollatorSortKey.
swap
(
other
)
¶
other
–
QCollatorSortKey
Swaps this collator key with
other
.