QTapGesture Class

The QTapGesture class describes a tap gesture made by the user. \ingroup gestures \inmodule QtWidgets. More...

Header: #include <QTapGesture>
Inherits: QGesture

Properties

Public Functions

QTapGesture(QObject *parent = nullptr)
virtual ~QTapGesture()
QPointF position() const
void setPosition(const QPointF &pos)

Detailed Description

\since4.6

For an overview of gesture handling in Qt and information on using gestures in your applications, see the Gestures in Widgets and Graphics View document.

See also QPanGesture and QPinchGesture.

Property Documentation

position : QPointF

This property holds the position of the tap

Access functions:

QPointF position() const
void setPosition(const QPointF &pos)

Member Function Documentation

[explicit] QTapGesture::QTapGesture(QObject *parent = nullptr)

\internal

[virtual noexcept] QTapGesture::~QTapGesture()

Destructor.