QtBase
v6.3.1
|
A base class for pointer events. More...
#include <qevent.h>
Protected Member Functions | |
QPointerEvent (Type type, SinglePointEventTag, const QInputDevice *dev, Qt::KeyboardModifiers modifiers=Qt::NoModifier) | |
Protected Member Functions inherited from QInputEvent | |
QInputEvent (Type type, PointerEventTag, const QInputDevice *dev, Qt::KeyboardModifiers modifiers=Qt::NoModifier) | |
QInputEvent (Type type, SinglePointEventTag, const QInputDevice *dev, Qt::KeyboardModifiers modifiers=Qt::NoModifier) | |
Protected Member Functions inherited from QEvent | |
QEvent (Type type, InputEventTag) | |
QEvent (Type type, PointerEventTag) | |
QEvent (Type type, SinglePointEventTag) | |
Protected Attributes | |
QList< QEventPoint > | m_points |
Protected Attributes inherited from QInputEvent | |
const QInputDevice * | m_dev = nullptr |
quint64 | m_timeStamp = 0 |
Qt::KeyboardModifiers | m_modState = Qt::NoModifier |
quint32 | m_reserved = 0 |
Protected Attributes inherited from QEvent | |
quint16 | t |
|
explicit |
QPointerEvent::~QPointerEvent | ( | ) |
Definition at line 297 of file qevent.cpp.
|
protected |
bool QPointerEvent::addPassiveGrabber | ( | const QEventPoint & | point, |
QObject * | grabber | ||
) |
Informs the delivery logic that the given grabber is to receive all future update events and the release event containing the given point, regardless where else those events may be delivered.
It's only for use by \l {Qt Quick Input Handlers}.
Returns false
if grabber was already added, true
otherwise.
Definition at line 428 of file qevent.cpp.
bool QPointerEvent::allPointsAccepted | ( | ) | const |
Returns true
if isPointAccepted() is true
for every point in points(); otherwise false
.
Definition at line 330 of file qevent.cpp.
bool QPointerEvent::allPointsGrabbed | ( | ) | const |
Returns true
if every point in points() has an exclusiveGrabber().
Definition at line 317 of file qevent.cpp.
void QPointerEvent::clearPassiveGrabbers | ( | const QEventPoint & | point | ) |
Removes all passive grabbers from the given point.
It's only for use by \l {Qt Quick Input Handlers}.
Definition at line 457 of file qevent.cpp.
|
inlineoverridevirtual |
Creates and returns an identical copy of this event.
Reimplemented from QInputEvent.
Reimplemented in QTouchEvent, QHoverEvent, QMouseEvent, QEnterEvent, and QSinglePointEvent.
QObject * QPointerEvent::exclusiveGrabber | ( | const QEventPoint & | point | ) | const |
Returns the object which has been set to receive all future update events and the release event containing the given point.
It's mainly for use in Qt Quick at this time.
Definition at line 375 of file qevent.cpp.
|
inlinevirtual |
Reimplemented in QTouchEvent, and QSinglePointEvent.
|
inlinevirtual |
Reimplemented in QTouchEvent, and QSinglePointEvent.
|
inlinevirtual |
Reimplemented in QTouchEvent, QHoverEvent, and QSinglePointEvent.
QList< QPointer< QObject > > QPointerEvent::passiveGrabbers | ( | const QEventPoint & | point | ) | const |
Returns the list of objects that have been requested to receive all future update events and the release event containing the given point.
It's only for use by \l {Qt Quick Input Handlers}.
Definition at line 408 of file qevent.cpp.
QEventPoint & QPointerEvent::point | ( | qsizetype | i | ) |
Returns a QEventPoint reference for the point at index i.
Definition at line 263 of file qevent.cpp.
QEventPoint * QPointerEvent::pointById | ( | int | id | ) |
Returns the point whose \l {QEventPoint::id()}{id} matches the given id, or nullptr
if no such point is found.
Definition at line 305 of file qevent.cpp.
|
inline |
|
inline |
const QPointingDevice * QPointerEvent::pointingDevice | ( | ) | const |
Returns the source device from which this event originates.
This is the same as QInputEvent::device() but typecast for convenience.
Definition at line 354 of file qevent.cpp.
|
inline |
bool QPointerEvent::removePassiveGrabber | ( | const QEventPoint & | point, |
QObject * | grabber | ||
) |
Removes the passive grabber from the given point if it was previously added. Returns true
if it had been a passive grabber before, false
if not.
It's only for use by \l {Qt Quick Input Handlers}.
Definition at line 443 of file qevent.cpp.
|
overridevirtual |
\reimp
Reimplemented from QEvent.
Definition at line 342 of file qevent.cpp.
void QPointerEvent::setExclusiveGrabber | ( | const QEventPoint & | point, |
QObject * | exclusiveGrabber | ||
) |
Informs the delivery logic that the given exclusiveGrabber is to receive all future update events and the release event containing the given point, and that delivery to other items can be skipped.
It's mainly for use in Qt Quick at this time.
Definition at line 393 of file qevent.cpp.
Reimplemented from QInputEvent.
Definition at line 362 of file qevent.cpp.
|
protected |