PythonQt.QtGui.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 |
|
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. |
DeviceType |
attribute | type |
Convert a number or string to an integer, or return 0 if no arguments are given. |
MouseEmulation |
attribute | Any |
|
NormalizedPosition |
attribute | Any |
|
Position |
attribute | Any |
|
Pressure |
attribute | Any |
|
RawPositions |
attribute | Any |
|
TouchPad |
attribute | Any |
|
TouchScreen |
attribute | Any |
|
Velocity |
attribute | Any |
|
__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. |
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 |
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 |
name |
function | (self) -> str |
X.name() -> str |
setCapabilities |
function | (self, caps: Any) -> None |
Sets the capabilities caps supported by the device and its driver. |
setMaximumTouchPoints |
function | (self, max: int) -> None |
Sets the maximum number of simultaneous touchpoints max supported by the device and its driver. |
setName |
function | (self, name: str) -> None |
Sets the name (a unique identifier) for the device. |
setType |
function | (self, devType: Any) -> None |
Sets the device type devType. |
type |
function | (self) -> Any |
Returns the touch device type. |