以下成員源於類 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 |
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
構造數位闆事件為給定 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.
in 5.4: use the constructor with MouseButton status
另請參閱 pos (), globalPos (), device (), pressure (), xTilt (), yTilt (), uniqueId (), rotation (), tangentialPressure (),和 z ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
使用 deviceType ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
數位闆設備的高精度 X 位置。
使用 globalPosF ()
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
數位闆設備的高精度 Y 位置。
使用 globalPosF ()