以下成員源於類 QNativeGestureEvent 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated in 6.2)
|
QNativeGestureEvent (Qt::NativeGestureType type , const QPointingDevice * device , const QPointF & localPos , const QPointF & scenePos , const QPointF & globalPos , qreal realValue , quint64 sequenceId , quint64 intValue ) |
(deprecated in 6.0)
const QPoint
|
globalPos () const |
(deprecated in 6.0)
QPointF
|
localPos () const |
(deprecated in 6.0)
const QPoint
|
pos () const |
(deprecated in 6.0)
QPointF
|
screenPos () const |
(deprecated in 6.0)
QPointF
|
windowPos () const |
[deprecated in 6.2]
QNativeGestureEvent::
QNativeGestureEvent
(
Qt::NativeGestureType
type
, const
QPointingDevice
*
device
, const
QPointF
&
localPos
, const
QPointF
&
scenePos
, const
QPointF
&
globalPos
,
qreal
realValue
,
quint64
sequenceId
,
quint64
intValue
)
This function is deprecated since 6.2. We strongly advise against using it in new code.
Use the other constructor, because intValue is no longer stored separately.
構造本機手勢事件為類型 type originating from device .
點 localPos , scenePos and globalPos specify the gesture position relative to the receiving widget or item, window, and screen or desktop, respectively.
realValue 是 macOS 事件參數, sequenceId and intValue 是 Windows 事件參數。
注意: It's not possible to store realValue and intValue simultaneously: one or the other must be zero. If realValue == 0 and intValue != 0, it is stored in the same variable, such that value () returns the value given as intValue .
[deprecated in 6.0]
const
QPoint
QNativeGestureEvent::
globalPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 globalPosition ().toPoint() instead.
返迴手勢位置按 QPointF 按屏幕坐標
[deprecated in 6.0]
QPointF
QNativeGestureEvent::
localPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position () 代替。
返迴手勢位置按 QPointF ,相對於接收事件的 Widget 或項。
[deprecated in 6.0]
const
QPoint
QNativeGestureEvent::
pos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position ().toPoint() instead.
返迴鼠標光標的位置,相對於接收事件的 Widget 或項。
[deprecated in 6.0]
QPointF
QNativeGestureEvent::
screenPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 globalPosition () 代替。
返迴手勢位置按 QPointF 按屏幕坐標。
[deprecated in 6.0]
QPointF
QNativeGestureEvent::
windowPos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 scenePosition () 代替。
返迴手勢位置按 QPointF ,相對接收事件的窗口。