以下成员源于类 QTouchEvent 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated in 6.0)
|
QTouchEvent (QEvent::Type eventType , const QPointingDevice * device , Qt::KeyboardModifiers modifiers , QEventPoint::States touchPointStates , const QList<QEventPoint> & touchPoints = {}) |
(deprecated in 6.0)
const QList<QEventPoint> &
|
touchPoints () const |
[explicit, deprecated in 6.0]
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 是事件发生时当前触摸点状态和键盘修饰符。
[deprecated in 6.0]
const
QList
<
QEventPoint
> &QTouchEvent::
touchPoints
() const
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 ().