QPointingDeviceUniqueId#

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

Inheritance diagram of PySide6.QtGui.QPointingDeviceUniqueId

Synopsis#

Properties#

  • numericId - The numeric unique ID of the token represented by a touchpoint

Functions#

Static functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

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.

See also

QEventPoint

class PySide6.QtGui.QPointingDeviceUniqueId#

Constructs an invalid unique pointer ID.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtGui.QPointingDeviceUniqueId.numericId: int#

This property holds the numeric unique ID of the token represented by a touchpoint.

If the device provides a numeric ID, isValid() returns true, and this property provides the numeric ID; otherwise it is -1.

You should not use the value of this property in portable code, but instead rely on equality to identify pointers.

See also

isValid()

Access functions:
static PySide6.QtGui.QPointingDeviceUniqueId.fromNumericId(id)#
Parameters:

id – int

Return type:

PySide6.QtGui.QPointingDeviceUniqueId

Constructs a unique pointer ID from numeric ID id.

PySide6.QtGui.QPointingDeviceUniqueId.isValid()#
Return type:

bool

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

PySide6.QtGui.QPointingDeviceUniqueId.numericId()#
Return type:

int

Getter of property numericId .

PySide6.QtGui.QPointingDeviceUniqueId.__ne__(rhs)#
Parameters:

rhsPySide6.QtGui.QPointingDeviceUniqueId

Return type:

bool

Returns whether the two unique pointer IDs lhs and rhs identify different pointers (true) or not (false).

PySide6.QtGui.QPointingDeviceUniqueId.__eq__(rhs)#
Parameters:

rhsPySide6.QtGui.QPointingDeviceUniqueId

Return type:

bool

Returns whether the two unique pointer IDs lhs and rhs identify the same pointer (true) or not (false).