A base class for pointer events. More...
Header: | #include <QPointerEvent> |
CMake: | find_package(Qt6 COMPONENTS Gui REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Since: | Qt 6.0 |
Inherits: | QInputEvent |
Inherited By: |
bool | addPassiveGrabber(const QEventPoint &point, QObject *grabber) |
bool | allPointsAccepted() const |
bool | allPointsGrabbed() const |
void | clearPassiveGrabbers(const QEventPoint &point) |
QObject * | exclusiveGrabber(const QEventPoint &point) const |
QList<QPointer<QObject> > | passiveGrabbers(const QEventPoint &point) const |
QEventPoint & | point(qsizetype i) |
QEventPoint * | pointById(int id) |
qsizetype | pointCount() const |
QPointingDevice::PointerType | pointerType() const |
const QPointingDevice * | pointingDevice() const |
const QList<QEventPoint> & | points() const |
bool | removePassiveGrabber(const QEventPoint &point, QObject *grabber) |
void | setExclusiveGrabber(const QEventPoint &point, QObject *exclusiveGrabber) |
virtual void | setAccepted(bool accepted) override |
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 mainly for use in Qt Quick at this time.
Returns false
if grabber was already added, true
otherwise.
Returns true
if isPointAccepted() is true
for every point in points(); otherwise false
.
Returns true
if every point in points() has an exclusiveGrabber().
Removes all passive grabbers from the given point.
It's mainly for use in Qt Quick at this time.
See also QPointerEvent::addPassiveGrabber().
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.
See also setExclusiveGrabber().
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 mainly for use in Qt Quick at this time.
See also QPointerEvent::addPassiveGrabber().
Returns a QEventPoint reference for the point at index i.
Returns the point whose id matches the given id, or nullptr
if no such point is found.
Returns the number of points in this pointer event.
Returns the type of point that generated the event.
Returns the source device from which this event originates.
This is the same as QInputEvent::device() but typecast for convenience.
Returns a list of points in this pointer event.
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 mainly for use in Qt Quick at this time.
See also QPointerEvent::addPassiveGrabber().
[override virtual]
void QPointerEvent::setAccepted(bool accepted)
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.
See also exclusiveGrabber().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qpointerevent.html