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