Obsolete Members for QTouchEvent

以下成员源于类 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 ,和 touchPointstouchPointStates and modifiers 是事件发生时当前触摸点状态和键盘修饰符。

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 ().