以下成員源於類 QTouchEvent 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated (6.2))
|
QTouchEvent (QEvent::Type eventType , const QPointingDevice * device = nullptr, Qt::KeyboardModifiers modifiers = Qt::NoModifier, const QList<QEventPoint> & touchPoints = {}) |
(deprecated (6.0))
|
QTouchEvent (QEvent::Type eventType , const QPointingDevice * device , Qt::KeyboardModifiers modifiers , QEventPoint::States touchPointStates , const QList<QEventPoint> & touchPoints = {}) |
(deprecated (6.0))
const QList<QEventPoint> &
|
touchPoints () const |
[explicit]
QTouchEvent::
QTouchEvent
(
QEvent::Type
eventType
, const
QPointingDevice
*
device
= nullptr,
Qt::KeyboardModifiers
modifiers
= Qt::NoModifier, const
QList
<
QEventPoint
> &
touchPoints
= {})
This function is deprecated since 6.2. We strongly advise against using it in new code.
Use another constructor.
構造 QTouchEvent 采用給定 eventType , device , touchPoints , and current keyboard modifiers at the time of the event.
[explicit]
QTouchEvent::
QTouchEvent
(
QEvent::Type
eventType
, const
QPointingDevice
*
device
,
Qt::KeyboardModifiers
modifiers
,
QEventPoint::States
touchPointStates
, const
QList
<
QEventPoint
> &
touchPoints
= {})
This function is deprecated since 6.0. We strongly advise against using it in new code.
Use another constructor.
構造 QTouchEvent 采用給定 eventType , device ,和 touchPoints 。 touchPointStates and modifiers 是事件發生時當前觸摸點狀態和鍵盤修飾符。
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 points () 代替。
Returns a reference to the list of touch points contained in the touch event.
另請參閱 QPointerEvent::point () 和 QPointerEvent::pointCount ().