43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qvector2d.h>
45 #include <QtGui/qpointingdevice.h>
46 #include <QtCore/qshareddata.h>
47 #include <QtCore/qmetatype.h>
58 Q_PROPERTY(
bool accepted READ isAccepted WRITE setAccepted)
112 QPointF scenePressPosition()
const;
113 QPointF sceneGrabPosition()
const;
114 QPointF sceneLastPosition()
const;
115 QPointF globalPosition()
const;
116 QPointF globalPressPosition()
const;
117 QPointF globalGrabPosition()
const;
118 QPointF globalLastPosition()
const;
119 QPointF normalizedPosition()
const;
121 #if QT_DEPRECATED_SINCE(6, 0)
126 QPointF startPos()
const {
return pressPosition(); }
128 QPointF scenePos()
const {
return scenePosition(); }
130 QPointF startScenePos()
const {
return scenePressPosition(); }
132 QPointF screenPos()
const {
return globalPosition(); }
134 QPointF startScreenPos()
const {
return globalPressPosition(); }
138 QPointF normalizedPos()
const {
return normalizedPosition(); }
140 QPointF lastPos()
const {
return lastPosition(); }
142 QPointF lastScenePos()
const {
return sceneLastPosition(); }
144 QPointF lastScreenPos()
const {
return globalLastPosition(); }
153 ulong timestamp()
const;
154 ulong lastTimestamp()
const;
155 ulong pressTimestamp()
const;
156 qreal timeHeld()
const;
157 qreal pressure()
const;
159 QSizeF ellipseDiameters()
const;
161 bool isAccepted()
const;
162 void setAccepted(
bool accepted =
true);
170 #ifndef QT_NO_DEBUG_STREAM
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
The QEventPoint class provides information about a point in a QPointerEvent.
The QPointF class defines a point in the plane using floating point precision.
A base class for pointer events.
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus,...
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QVector2D class represents a vector or vertex in 2D space.
auto it unsigned count const
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
constexpr bool operator!=(const timespec &t1, const timespec &t2)
#define Q_DECLARE_FLAGS(Flags, Enum)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define QT_DEPRECATED_VERSION_X_6_0(text)
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
bool operator==(const QMakeBaseKey &one, const QMakeBaseKey &two)
#define QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_DECLARE_SHARED(TYPE)