QCollatorSortKey

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

Inheritance diagram of PySide2.QtCore.QCollatorSortKey

New in version 5.2.

Synopsis

Functions

Detailed Description

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

See also

QCollator sortKey()

class PySide2.QtCore.QCollatorSortKey(other)
Parameters:

otherPySide2.QtCore.QCollatorSortKey

PySide2.QtCore.QCollatorSortKey.compare(key)
Parameters:

keyPySide2.QtCore.QCollatorSortKey

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 to otherKey or a positive value if the key is greater than otherKey .

See also

operator

PySide2.QtCore.QCollatorSortKey.__lt__(rhs)
Parameters:

rhsPySide2.QtCore.QCollatorSortKey

Return type:

bool

PySide2.QtCore.QCollatorSortKey.swap(other)
Parameters:

otherPySide2.QtCore.QCollatorSortKey

Swaps this collator key with other .