Obsolete Members for QTabletEvent

以下成员源于类 QTabletEvent 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QTabletEvent (QEvent::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) QTabletEvent::TabletDevice device () const
(obsolete) qreal hiResGlobalX () const
(obsolete) qreal hiResGlobalY () const

成员函数文档编制

QTabletEvent:: QTabletEvent ( QEvent::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 )

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

构造数位板事件为给定 type .

pos 参数指示事件发生在 Widget 中哪里; globalPos 是绝对坐标对应位置。

pressure 包含的压力施加于 device .

pointerType 描述正在使用的笔类型。

xTilt and yTilt 分别包含设备相对 X 轴和 Y 轴的倾斜度。

keyState 指定按下了哪个键盘修饰符 (如 Ctrl ).

uniqueID 参数包含当前设备的唯一 ID。

z 参数包含数位板设备的坐标,这通常由 4D 鼠标滚轮给出。若设备不支持 Z 轴,此处传递 0。

tangentialPressure 参数包含空气刷的切向压力。若设备不支持切向压力,此处传递 0。

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

另请参阅 pos (), globalPos (), device (), pressure (), xTilt (), yTilt (), uniqueId (), rotation (), tangentialPressure (),和 z ().

QTabletEvent::TabletDevice QTabletEvent:: device () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

使用 deviceType ().

qreal QTabletEvent:: hiResGlobalX () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

数位板设备的高精度 X 位置。

使用 globalPosF ()

qreal QTabletEvent:: hiResGlobalY () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

数位板设备的高精度 Y 位置。

使用 globalPosF ()