Obsolete Members for QTabletEvent

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

公共函数

(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 )

成员函数文档编制

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 )

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

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

pressure 包含的压力施加于 device .

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

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

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

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

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

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

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

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