PythonQt.QtGui.QTouchDevice · declarations 001
Back to PythonQt.QtGui.QTouchDevice
Area
instance-attribute
Area: Any
CapabilityFlag
instance-attribute
CapabilityFlag: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
DeviceType
instance-attribute
DeviceType: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
MouseEmulation
instance-attribute
MouseEmulation: Any
NormalizedPosition
instance-attribute
NormalizedPosition: Any
Position
instance-attribute
Position: Any
Pressure
instance-attribute
Pressure: Any
RawPositions
instance-attribute
RawPositions: Any
TouchPad
instance-attribute
TouchPad: Any
TouchScreen
instance-attribute
TouchScreen: Any
Velocity
instance-attribute
Velocity: Any
capabilities
capabilities() -> Any
X.capabilities()
Supplemental documentation: Qt 5 reference:
QTouchDevice::Capabilities QTouchDevice::capabilities() const
Returns the touch device capabilities.
See also setCapabilities().
Upstream PySide2 reference signatures (binding differences may apply):
capabilities(self) -> PySide2.QtGui.QTouchDevice.Capabilities
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#capabilities
devices
devices() -> tuple
X.devices() -> tuple
Supplemental documentation: Qt 5 reference:
[static] QList\<const QTouchDevice *> QTouchDevice::devices()
Returns a list of all registered devices.
Note: The returned list cannot be used to add new devices. To add a simulated touch
screen for an autotest,
QTest::createTouchDevice()
can be used. To add real touch screens to QPA plugins, the private
QWindowSystemInterface::registerTouchDevice() function can be used.
Upstream PySide2 reference signatures (binding differences may apply):
devices() -> typing.List[PySide2.QtGui.QTouchDevice]
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#devices
maximumTouchPoints
maximumTouchPoints() -> int
X.maximumTouchPoints() -> int
Supplemental documentation: Qt 5 reference:
int QTouchDevice::maximumTouchPoints() const
Returns the maximum number of simultaneous touch points (fingers) that can be detected.
This function was introduced in Qt 5.2.
See also setMaximumTouchPoints().
Upstream PySide2 reference signatures (binding differences may apply):
maximumTouchPoints(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#maximumTouchPoints
name
name() -> str
X.name() -> str
Supplemental documentation: Qt 5 reference:
QString QTouchDevice::name() const
Returns the touch device name.
This string may often be empty. It is however useful for systems that have more than one touch input device because there it can be used to differentiate between the devices (i.e. to tell from which device a QTouchEvent originates from).
See also setName().
Upstream PySide2 reference signatures (binding differences may apply):
name(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#name
setCapabilities
setCapabilities(caps: Any) -> None
X.setCapabilities(caps)
Supplemental documentation: Qt 5 reference:
void QTouchDevice::setCapabilities(QTouchDevice::Capabilities caps)
Sets the capabilities caps supported by the device and its driver.
See also capabilities().
Upstream PySide2 reference signatures (binding differences may apply):
setCapabilities(self, caps: PySide2.QtGui.QTouchDevice.Capabilities) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#setCapabilities
setMaximumTouchPoints
setMaximumTouchPoints(max: int) -> None
X.setMaximumTouchPoints(max)
Supplemental documentation: Qt 5 reference:
void QTouchDevice::setMaximumTouchPoints(int max)
Sets the maximum number of simultaneous touchpoints max supported by the device and its driver.
See also maximumTouchPoints().
Upstream PySide2 reference signatures (binding differences may apply):
setMaximumTouchPoints(self, max: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#setMaximumTouchPoints
setName
setName(name: str) -> None
X.setName(name)
Supplemental documentation: Qt 5 reference:
void QTouchDevice::setName(const QString \&name)
Sets the name (a unique identifier) for the device. In most systems it is enough to leave this unset and keep the default empty name. This identifier becomes important when having multiple touch devices and a need to differentiate between them.
See also name().
Upstream PySide2 reference signatures (binding differences may apply):
setName(self, name: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#setName
setType
setType(devType: Any) -> None
X.setType(devType)
Supplemental documentation: Qt 5 reference:
void QTouchDevice::setType(QTouchDevice::DeviceType devType)
Sets the device type devType.
See also type().
Upstream PySide2 reference signatures (binding differences may apply):
setType(self, devType: PySide2.QtGui.QTouchDevice.DeviceType) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#setType
type
type() -> Any
X.type()
Supplemental documentation: Qt 5 reference:
QTouchDevice::DeviceType QTouchDevice::type() const
Returns the touch device type.
See also setType().
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> PySide2.QtGui.QTouchDevice.DeviceType
Source: https://doc.qt.io/archives/qt-5.15/qtouchdevice.html#type