Obsolete Members for QTabletEvent

以下成員源於類 QTabletEvent 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(deprecated in 6.0) QPoint globalPos () const
(deprecated in 6.0) const QPointF globalPosF () const
(deprecated in 6.0) int globalX () const
(deprecated in 6.0) int globalY () const
(deprecated in 6.0) QPoint pos () const
(deprecated in 6.0) const QPointF posF () const
(deprecated in 6.0) qint64 uniqueId () const
(deprecated in 6.0) int x () const
(deprecated in 6.0) int y () const

成員函數文檔編製

[deprecated in 6.0] QPoint QTabletEvent:: globalPos () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 globalPosition ().toPoint() instead.

返迴設備的全局位置 當事件發生時 。這對異步窗口係統 (像 X11) 很重要;每當圍繞響應鼠標事件移動 Widget 時,globalPos() 會顯著異於當前位置 QCursor::pos ().

另請參閱 globalX () 和 globalY ().

[deprecated in 6.0] const QPointF QTabletEvent:: globalPosF () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 globalPosition () instead. Returns the global position of the device 當事件發生時 。這對異步窗口係統 (像 X11) 很重要;每當圍繞響應鼠標事件移動 Widget 時,globalPosF() 會顯著異於當前位置 QCursor::pos ().

另請參閱 posF ().

[deprecated in 6.0] int QTabletEvent:: globalX () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 globalPosition (). x () 代替。

返迴事件發生時的鼠標指針全局 X 位置。

另請參閱 globalY () 和 globalPos ().

[deprecated in 6.0] int QTabletEvent:: globalY () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 globalPosition (). y () 代替。

返迴事件發生時數位闆設備的全局 y 位置。

另請參閱 globalX () 和 globalPos ().

[deprecated in 6.0] QPoint QTabletEvent:: pos () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 position ().toPoint() instead.

返迴設備位置,相對接收事件 Widget。

若圍繞響應鼠標事件移動 Widget,使用 globalPos () 而不是此函數。

另請參閱 x (), y (),和 globalPos ().

[deprecated in 6.0] const QPointF QTabletEvent:: posF () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 position () 代替。

返迴設備位置,相對接收事件 Widget。

若圍繞響應鼠標事件移動 Widget,使用 globalPosF () 而不是此函數。

另請參閱 globalPosF ().

[deprecated in 6.0] qint64 QTabletEvent:: uniqueId () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 pointingDevice ().uniqueId() instead.

返迴當前設備的唯一 ID,使之可能區分數位闆中同時使用的多個設備。

此特徵的支持從屬數位闆。

同一設備的值可能因操作係統而異。

更高版本的 Linux Wacom 驅動程序現在會報告 ID 信息。若有支持唯一 ID 的數位闆且在 Linux 未獲取到信息,考慮升級驅動程序。

從 Qt 4.2 起,唯一 ID 相同不管鋼筆取嚮。早期版本會報告不同值,當在某些 OS 使用手寫筆的橡皮擦端和鋼筆端時。

另請參閱 pointerType ().

[deprecated in 6.0] int QTabletEvent:: x () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 position ().x() instead.

返迴設備的 x 位置,相對接收事件 Widget。

另請參閱 y () 和 pos ().

[deprecated in 6.0] int QTabletEvent:: y () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 position ().y() instead.

返迴設備的 y 位置,相對接收事件 Widget。

另請參閱 x () 和 pos ().