以下成員源於類 QHoverEvent 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated in 6.3)
|
QHoverEvent (QEvent::Type type , const QPointF & pos , const QPointF & oldPos , Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QPointingDevice * device = QPointingDevice::primaryPointingDevice()) |
(deprecated in 6.0)
QPoint
|
pos () const |
(deprecated in 6.0)
QPointF
|
posF () const |
[deprecated in 6.3]
QHoverEvent::
QHoverEvent
(
QEvent::Type
type
, const
QPointF
&
pos
, const
QPointF
&
oldPos
,
Qt::KeyboardModifiers
modifiers
= Qt::NoModifier, const
QPointingDevice
*
device
= QPointingDevice::primaryPointingDevice())
This function is deprecated since 6.3. We strongly advise against using it in new code.
Use the other constructor instead (global position is required).
Constructs a hover event object originating from device .
The type 參數必須是 QEvent::HoverEnter , QEvent::HoverLeave ,或 QEvent::HoverMove .
The pos 是相對於接收 Widget 的當前鼠標光標位置,而 oldPos 是它的先前這種位置。 modifiers 保持事件發生時所有鍵盤修飾符的狀態。
[deprecated in 6.0]
QPoint
QHoverEvent::
pos
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position ().toPoint() instead.
返迴鼠標光標的位置,相對於接收事件的 Widget。
On QEvent::HoverLeave 事件,此位置將始終是 QPoint (-1, -1).
另請參閱 oldPos ().
[deprecated in 6.0]
QPointF
QHoverEvent::
posF
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 position () 代替。
返迴鼠標光標的位置,相對於接收事件的 Widget。
On QEvent::HoverLeave 事件,此位置將始終是 QPointF (-1, -1).
另請參閱 oldPosF ().