QCollatorSortKey

Inheritance diagram of PySide2.QtCore.QCollatorSortKey

Note

This class was introduced in Qt 5.2.

Synopsis

Functions

Detailed Description

The PySide2.QtCore.QCollatorSortKey class can be used to speed up string collation.

The PySide2.QtCore.QCollatorSortKey class is always created by QCollator.sortKey() and is used for fast strings collation, for example when collating many strings.

class PySide2.QtCore.QCollatorSortKey(other)
Parameters:otherPySide2.QtCore.QCollatorSortKey

Constructs a copy of the other collator key.

PySide2.QtCore.QCollatorSortKey.compare(key)
Parameters:keyPySide2.QtCore.QCollatorSortKey
Return type:PySide2.QtCore.int

Compares the 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

PySide2.QtCore.QCollatorSortKey.operator<()

PySide2.QtCore.QCollatorSortKey.__lt__(rhs)
Parameters:rhsPySide2.QtCore.QCollatorSortKey
Return type:PySide2.QtCore.bool
PySide2.QtCore.QCollatorSortKey.swap(other)
Parameters:otherPySide2.QtCore.QCollatorSortKey

Swaps this collator key with other .