内容表

上一话题

QCollator

下一话题

QCommandLineOption

QCollatorSortKey

QCollatorSortKey class can be used to speed up string collation. 更多

Inheritance diagram of PySide2.QtCore.QCollatorSortKey

New in version 5.2.

概要

函数

详细描述

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

class 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 .