Skip to content

PythonQt.Qt.QTouchDevice

QTouchDevice

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Each QTouchEvent contains a QTouchDevice pointer to allow accessing device-specific properties like type and capabilities. It is the responsibility of the platform or generic plug-ins to register the available touch devices via QWindowSystemInterface before generating any touch events. Applications do not need to instantiate this class, they should just access the global instances pointed to by QTouchEvent::device().

Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
Area attribute Any (shared captured text)
Capabilities attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
CapabilityFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
DeviceType attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
MouseEmulation attribute Any (shared captured text)
NormalizedPosition attribute Any (shared captured text)
Position attribute Any (shared captured text)
Pressure attribute Any (shared captured text)
RawPositions attribute Any (shared captured text)
TouchPad attribute Any (shared captured text)
TouchScreen attribute Any (shared captured text)
Velocity attribute Any (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
capabilities function (self) -> Any Returns the touch device capabilities. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
devices function (self) -> tuple X.devices() -> tuple (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
maximumTouchPoints function (self) -> int X.maximumTouchPoints() -> int (shared captured text)
name function (self) -> str X.name() -> str (shared captured text)
setCapabilities function (self, caps: Any) -> None Sets the capabilities caps supported by the device and its driver. (shared captured text)
setMaximumTouchPoints function (self, max: int) -> None Sets the maximum number of simultaneous touchpoints max supported by the device and its driver. (shared captured text)
setName function (self, name: str) -> None Sets the name (a unique identifier) for the device. (shared captured text)
setType function (self, devType: Any) -> None Sets the device type devType. (shared captured text)
type function (self) -> Any Returns the touch device type. (shared captured text)