- Qt 5.15
- Qt GUI
- C++ Classes
- QTabletEvent
- Qt 5.15.15 Reference Documentation

# Obsolete Members for QTabletEvent

The following members of class QTabletEvent are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Public Functions

`(obsolete)` | QTabletEvent(Type type, const QPointF &pos, const QPointF &globalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID)
`(obsolete)` TabletDevice | device() const
`(obsolete)` qreal | hiResGlobalX() const
`(obsolete)` qreal | hiResGlobalY() const

## Member Function Documentation

### QTabletEvent::QTabletEvent(Type type, const QPointF &pos, const QPointF &globalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Construct a tablet event of the given type.

The pos parameter indicates where the event occurred in the widget; globalPos is the corresponding position in absolute coordinates.

pressure contains the pressure exerted on the device.

pointerType describes the type of pen that is being used.

xTilt and yTilt contain the device's degree of tilt from the x and y axes respectively.

keyState specifies which keyboard modifiers are pressed (e.g., Ctrl).

The uniqueID parameter contains the unique ID for the current device.

The z parameter contains the coordinate of the device on the tablet, this is usually given by a wheel on 4D mouse. If the device does not support a Z-axis, pass zero here.

The tangentialPressure parameter contins the tangential pressure of an air brush. If the device does not support tangential pressure, pass 0 here.

rotation contains the device's rotation in degrees. 4D mice support rotation. If the device does not support rotation, pass 0 here.

in 5.4: use the constructor with MouseButton status

See also pos(), globalPos(), device(), pressure(), xTilt(), yTilt(), uniqueId(), rotation(), tangentialPressure(), and z().

### TabletDevice QTabletEvent::device() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Use deviceType().

### qreal QTabletEvent::hiResGlobalX() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

The high precision x position of the tablet device.

use globalPosF()

### qreal QTabletEvent::hiResGlobalY() const

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

The high precision y position of the tablet device.

use globalPosF()