内容表

上一话题

QPixmapCache

下一话题

QPolygon

QPointingDeviceUniqueId

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device. 更多

Inheritance diagram of PySide2.QtGui.QPointingDeviceUniqueId

概要

函数

静态函数

详细描述

QPointingDeviceUniqueIds can be compared for equality, and can be used as keys in a QHash . You get access to the numerical ID via numericId() , if the device supports such IDs. For future extensions, though, you should not use that function, but compare objects of this type using the equality operator.

This class is a thin wrapper around an integer ID. You pass it into and out of functions by value.

This type actively prevents you from holding it in a QList , because doing so would be very inefficient. Use a QVector instead, which has the same API as QList , but more efficient storage.

另请参阅

TouchPoint

class QPointingDeviceUniqueId

QPointingDeviceUniqueId(QPointingDeviceUniqueId)

param QPointingDeviceUniqueId

QPointingDeviceUniqueId

Constructs an invalid unique pointer ID.

static PySide2.QtGui.QPointingDeviceUniqueId. fromNumericId ( id )
参数

id qint64

返回类型

QPointingDeviceUniqueId

Constructs a unique pointer ID from numeric ID id .

PySide2.QtGui.QPointingDeviceUniqueId. isValid ( )
返回类型

bool

Returns whether this unique pointer ID is valid, that is, it represents an actual pointer.

PySide2.QtGui.QPointingDeviceUniqueId. numericId ( )
返回类型

qint64

PySide2.QtGui.QPointingDeviceUniqueId. __ne__ ( rhs )
参数

rhs QPointingDeviceUniqueId

返回类型

bool

PySide2.QtGui.QPointingDeviceUniqueId. __eq__ ( rhs )
参数

rhs QPointingDeviceUniqueId

返回类型

bool