6#include <QtQuick/private/qquickitem_p.h>
28 emit q->mouseXChanged();
30 emit q->mouseYChanged();
40 emit q->hoveredChanged();
64 return d->mousePos.x();
69 return d->mousePos.y();
76 if (
d->windowSystemCursorEnabled !=
enable) {
77 d->windowSystemCursorEnabled =
enable;
90 return d->windowSystemCursorEnabled;
117 d->handleMousePos(
event->position());
124 d->handleMousePos(
event->position());
138 d->setHovered(
false);
143#include "moc_qwaylandmousetracker_p.cpp"
The QCursor class provides a mouse cursor with an arbitrary shape.
void fill(uint pixel)
Fills the entire image with the given pixelValue.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setFiltersChildMouseEvents(bool filter)
Sets whether pointer events intended for this item's children should be filtered through this item.
Q_INVOKABLE QPointF mapFromItem(const QQuickItem *item, const QPointF &point) const
Maps the given point in item's coordinate system to the equivalent point within this item's coordinat...
void setAcceptHoverEvents(bool enabled)
If enabled is true, this sets the item to accept hover events; otherwise, hover events are not accept...
virtual void hoverMoveEvent(QHoverEvent *event)
This event handler can be reimplemented in a subclass to receive hover-move events for an item.
void setAcceptedMouseButtons(Qt::MouseButtons buttons)
Sets the mouse buttons accepted by this item to buttons.
virtual void mouseMoveEvent(QMouseEvent *event)
This event handler can be reimplemented in a subclass to receive mouse move events for an item.
QPointF position() const
Returns the position of the point in this event, relative to the widget or item that received the eve...
void handleMousePos(const QPointF &mousePos)
void setHovered(bool hovered)
bool windowSystemCursorEnabled
QWaylandMouseTrackerPrivate()
bool childMouseEventFilter(QQuickItem *item, QEvent *event) override
Reimplement this method to filter the pointer events that are received by this item's children.
void windowSystemCursorEnabledChanged()
bool windowSystemCursorEnabled
void hoverLeaveEvent(QHoverEvent *event) override
This event handler can be reimplemented in a subclass to receive hover-leave events for an item.
QWaylandMouseTracker(QQuickItem *parent=nullptr)
void hoverEnterEvent(QHoverEvent *event) override
This event handler can be reimplemented in a subclass to receive hover-enter events for an item.
void setWindowSystemCursorEnabled(bool enable)
void hoverMoveEvent(QHoverEvent *event) override
This event handler can be reimplemented in a subclass to receive hover-move events for an item.
void mouseMoveEvent(QMouseEvent *event) override
This event handler can be reimplemented in a subclass to receive mouse move events for an item.
Combined button and popup list for selecting options.
static void unsetCursor(QWindow *w)
GLdouble GLdouble GLdouble GLdouble q
item setCursor(Qt::IBeamCursor)
[1]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent