PythonQt.QtGui.QTabletEvent · declarations 001
Back to PythonQt.QtGui.QTabletEvent
Airbrush
instance-attribute
Airbrush: Any
Eraser
instance-attribute
Eraser: Any
FourDMouse
instance-attribute
FourDMouse: Any
NoDevice
instance-attribute
NoDevice: Any
Pen
instance-attribute
Pen: Any
PointerType
instance-attribute
PointerType: 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
Puck
instance-attribute
Puck: Any
RotationStylus
instance-attribute
RotationStylus: Any
Stylus
instance-attribute
Stylus: Any
TabletDevice
instance-attribute
TabletDevice: 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
UnknownPointer
instance-attribute
UnknownPointer: Any
XFreeEraser
instance-attribute
XFreeEraser: Any
button
button() -> Any
X.button()
Supplemental documentation: Qt 5 reference:
Qt::MouseButton QTabletEvent::button() const
Returns the button that caused the event.
Note that the returned value is always Qt::NoButton for TabletMove, TabletEnterProximity and TabletLeaveProximity events.
See also buttons() and Qt::MouseButton.
Upstream PySide2 reference signatures (binding differences may apply):
button(self) -> PySide2.QtCore.Qt.MouseButton
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#button
buttons
buttons() -> Any
X.buttons()
Supplemental documentation: Qt 5 reference:
Qt::MouseButtons QTabletEvent::buttons() const
Returns the button state when the event was generated. The button state is a combination of buttons from the Qt::MouseButton enum using the OR operator. For TabletMove events, this is all buttons that are pressed down. For TabletPress events this includes the button that caused the event. For TabletRelease events this excludes the button that caused the event.
See also button() and Qt::MouseButton.
Upstream PySide2 reference signatures (binding differences may apply):
buttons(self) -> PySide2.QtCore.Qt.MouseButtons
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#buttons
device
device() -> Any
X.device()
Upstream PySide2 reference signatures (binding differences may apply):
device(self) -> PySide2.QtGui.QTabletEvent.TabletDevice
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#device
globalPos
globalPos() -> Any
X.globalPos() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
QPoint QTabletEvent::globalPos() const
Returns the global position of the device at the time of the event. This is important on asynchronous windows systems like X11; whenever you move your widgets around in response to mouse events, globalPos() can differ significantly from the current position QCursor::pos().
See also globalX() and globalY().
Upstream PySide2 reference signatures (binding differences may apply):
globalPos(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#globalPos
globalPosF
globalPosF() -> Any
X.globalPosF() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
const QPointF \&QTabletEvent::globalPosF() const
Returns the global position of the device at the time of the event. This is important on asynchronous windows systems like X11; whenever you move your widgets around in response to mouse events, globalPosF() can differ significantly from the current position QCursor::pos().
See also posF().
Upstream PySide2 reference signatures (binding differences may apply):
globalPosF(self) -> PySide2.QtCore.QPointF
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#globalPosF
globalX
globalX() -> int
X.globalX() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::globalX() const
Returns the global x position of the mouse pointer at the time of the event.
See also globalY(), globalPos(), and hiResGlobalX().
Upstream PySide2 reference signatures (binding differences may apply):
globalX(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#globalX
globalY
globalY() -> int
X.globalY() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::globalY() const
Returns the global y position of the tablet device at the time of the event.
See also globalX(), globalPos(), and hiResGlobalY().
Upstream PySide2 reference signatures (binding differences may apply):
globalY(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#globalY
hiResGlobalX
hiResGlobalX() -> float
X.hiResGlobalX() -> float
Upstream PySide2 reference signatures (binding differences may apply):
hiResGlobalX(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#hiResGlobalX
hiResGlobalY
hiResGlobalY() -> float
X.hiResGlobalY() -> float
Upstream PySide2 reference signatures (binding differences may apply):
hiResGlobalY(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#hiResGlobalY
pointerType
pointerType() -> Any
X.pointerType()
Supplemental documentation: Qt 5 reference:
QTabletEvent::PointerType QTabletEvent::pointerType() const
Returns the type of point that generated the event.
Upstream PySide2 reference signatures (binding differences may apply):
pointerType(self) -> PySide2.QtGui.QTabletEvent.PointerType
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#pointerType
pos
pos() -> Any
X.pos() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
QPoint QTabletEvent::pos() const
Returns the position of the device, relative to the widget that received the event.
If you move widgets around in response to mouse events, use globalPos() instead of this function.
See also x(), y(), and globalPos().
Upstream PySide2 reference signatures (binding differences may apply):
pos(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#pos
posF
posF() -> Any
X.posF() -> PythonQt.QtCore.QPointF
Supplemental documentation: Qt 5 reference:
const QPointF \&QTabletEvent::posF() const
Returns the position of the device, relative to the widget that received the event.
If you move widgets around in response to mouse events, use globalPosF() instead of this function.
See also globalPosF().
Upstream PySide2 reference signatures (binding differences may apply):
posF(self) -> PySide2.QtCore.QPointF
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#posF
pressure
pressure() -> float
X.pressure() -> float
Supplemental documentation: Qt 5 reference:
qreal QTabletEvent::pressure() const
Returns the pressure for the device. 0.0 indicates that the stylus is not on the tablet, 1.0 indicates the maximum amount of pressure for the stylus.
See also tangentialPressure().
Upstream PySide2 reference signatures (binding differences may apply):
pressure(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#pressure
rotation
rotation() -> float
X.rotation() -> float
Supplemental documentation: Qt 5 reference:
qreal QTabletEvent::rotation() const
Returns the rotation of the current tool in degrees, where zero means the tip of the stylus is pointing towards the top of the tablet, a positive value means it's turned to the right, and a negative value means it's turned to the left. This can be given by a 4D Mouse or a rotation-capable stylus (such as the Wacom Art Pen or the Apple Pencil). If the device does not support rotation, this value is always 0.0.
Upstream PySide2 reference signatures (binding differences may apply):
rotation(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#rotation
tangentialPressure
tangentialPressure() -> float
X.tangentialPressure() -> float
Supplemental documentation: Qt 5 reference:
qreal QTabletEvent::tangentialPressure() const
Returns the tangential pressure for the device. This is typically given by a finger wheel on an airbrush tool. The range is from -1.0 to 1.0. 0.0 indicates a neutral position. Current airbrushes can only move in the positive direction from the neutrual position. If the device does not support tangential pressure, this value is always 0.0.
See also pressure().
Upstream PySide2 reference signatures (binding differences may apply):
tangentialPressure(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#tangentialPressure
uniqueId
uniqueId() -> int
X.uniqueId() -> int
Supplemental documentation: Qt 5 reference:
qint64 QTabletEvent::uniqueId() const
Returns a unique ID for the current device, making it possible to differentiate between multiple devices being used at the same time on the tablet.
Support of this feature is dependent on the tablet.
Values for the same device may vary from OS to OS.
Later versions of the Wacom driver for Linux will now report the ID information. If you have a tablet that supports unique ID and are not getting the information on Linux, consider upgrading your driver.
As of Qt 4.2, the unique ID is the same regardless of the orientation of the pen. Earlier versions would report a different value when using the eraser-end versus the pen-end of the stylus on some OS's.
See also pointerType().
Upstream PySide2 reference signatures (binding differences may apply):
uniqueId(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#uniqueId
x
x() -> int
X.x() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::x() const
Returns the x position of the device, relative to the widget that received the event.
Upstream PySide2 reference signatures (binding differences may apply):
x(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#x
xTilt
xTilt() -> int
X.xTilt() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::xTilt() const
Returns the angle between the device (a pen, for example) and the perpendicular in the direction of the x axis. Positive values are towards the tablet's physical right. The angle is in the range -60 to +60 degrees.

See also yTilt().
Upstream PySide2 reference signatures (binding differences may apply):
xTilt(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#xTilt
y
y() -> int
X.y() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::y() const
Returns the y position of the device, relative to the widget that received the event.
Upstream PySide2 reference signatures (binding differences may apply):
y(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#y
yTilt
yTilt() -> int
X.yTilt() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::yTilt() const
Returns the angle between the device (a pen, for example) and the perpendicular in the direction of the y axis. Positive values are towards the bottom of the tablet. The angle is within the range -60 to +60 degrees.
See also xTilt().
Upstream PySide2 reference signatures (binding differences may apply):
yTilt(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#yTilt
z
z() -> int
X.z() -> int
Supplemental documentation: Qt 5 reference:
int QTabletEvent::z() const
Returns the z position of the device. Typically this is represented by a wheel on a 4D Mouse. If the device does not support a Z-axis, this value is always zero. This is not the same as pressure.
See also pressure().
Upstream PySide2 reference signatures (binding differences may apply):
z(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtabletevent.html#z