QCollatorSortKey¶
The
QCollatorSortKey
class can be used to speed up string collation. More…
New in version 5.2.
Synopsis¶
Functions¶
Detailed Description¶
The
QCollatorSortKey
class is always created bysortKey()
and is used for fast strings collation, for example when collating many strings.
- class PySide2.QtCore.QCollatorSortKey(other)¶
- Parameters:
other –
PySide2.QtCore.QCollatorSortKey
- PySide2.QtCore.QCollatorSortKey.compare(key)¶
- Parameters:
- Return type:
int
Compares this key to
otherKey
.Returns a negative value if the key is less than
otherKey
, 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:
- Return type:
bool
- PySide2.QtCore.QCollatorSortKey.swap(other)¶
- Parameters:
other –
PySide2.QtCore.QCollatorSortKey
Swaps this collator key with
other
.
© 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.