7#include <QtGui/qtguiglobal.h>
8#include <QtGui/qvector2d.h>
9#include <QtGui/qpointingdevice.h>
10#include <QtCore/qshareddata.h>
11#include <QtCore/qmetatype.h>
22 Q_PROPERTY(
bool accepted READ isAccepted WRITE setAccepted)
64 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QEventPoint)
76 QPointF scenePressPosition()
const;
77 QPointF sceneGrabPosition()
const;
78 QPointF sceneLastPosition()
const;
80 QPointF globalPressPosition()
const;
81 QPointF globalGrabPosition()
const;
82 QPointF globalLastPosition()
const;
83 QPointF normalizedPosition()
const;
85#if QT_DEPRECATED_SINCE(6, 0)
90 QPointF startPos()
const {
return pressPosition(); }
92 QPointF scenePos()
const {
return scenePosition(); }
94 QPointF startScenePos()
const {
return scenePressPosition(); }
96 QPointF screenPos()
const {
return globalPosition(); }
98 QPointF startScreenPos()
const {
return globalPressPosition(); }
100 QPointF startNormalizedPos() const;
102 QPointF normalizedPos()
const {
return normalizedPosition(); }
104 QPointF lastPos()
const {
return lastPosition(); }
106 QPointF lastScenePos()
const {
return sceneLastPosition(); }
108 QPointF lastScreenPos()
const {
return globalLastPosition(); }
110 QPointF lastNormalizedPos() const;
117 ulong timestamp()
const;
118 ulong lastTimestamp()
const;
119 ulong pressTimestamp()
const;
120 qreal timeHeld()
const;
121 qreal pressure()
const;
122 qreal rotation()
const;
123 QSizeF ellipseDiameters()
const;
125 bool isAccepted()
const;
126 void setAccepted(
bool accepted =
true);
134#ifndef QT_NO_DEBUG_STREAM
IOBluetoothDevice * device
The QEventPoint class provides information about a point in a QPointerEvent.
~QEventPoint()
Destroys the event point.
void swap(QEventPoint &other) noexcept
QEventPoint(const QEventPoint &other) noexcept
Constructs an event point by making a shallow copy of other.
QEventPoint & operator=(const QEventPoint &other) noexcept
Assigns other to this event point and returns a reference to this event point.
State
Specifies the state of this event point.
QEventPoint(QEventPoint &&other) noexcept=default
Constructs an event point by moving other.
bool operator!=(const QEventPoint &other) const noexcept
Returns true if this event point is not equal to other, otherwise return false.
\inmodule QtCore\reentrant
A base class for pointer events.
QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus,...
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
The QVector2D class represents a vector or vertex in 2D space.
Combined button and popup list for selecting options.
Q_GUI_EXPORT QDebug operator<<(QDebug, const QEventPoint *)
#define Q_DECLARE_FLAGS(Flags, Enum)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define QT_DEPRECATED_VERSION_X_6_0(text)