Class QAccelPlot::Internal::PointerTracker¶
ClassList > QAccelPlot > Internal > PointerTracker
Tracks the pointer over a plot from the plot's mouse and hover events. More...
#include <PointerTracker.hpp>
Inherits the following classes: QObject
Inheritance diagram¶
flowchart TB
classQAccelPlot_1_1Internal_1_1PointerTracker["QAccelPlot::Internal::PointerTracker"]
external_base_classQAccelPlot_1_1Internal_1_1PointerTracker_1["QObject"]
external_base_classQAccelPlot_1_1Internal_1_1PointerTracker_1 --> classQAccelPlot_1_1Internal_1_1PointerTracker
Public Signals¶
| Type | Name |
|---|---|
| signal void | changed Emitted when the pointer moves, appears, or leaves. |
Public Functions¶
| Type | Name |
|---|---|
| PointerTracker (QObject * parent=nullptr) Constructs a tracker owned by parent . |
|
| void | hoverEnter (const QHoverEvent & event) Places the pointer where the hover enters, unless a touch is in progress. |
| void | hoverLeave () Removes the pointer when the mouse leaves; a touch pointer stays. |
| void | hoverMove (const QHoverEvent & event) Places the pointer at a hover move, which always comes from the mouse. |
| void | mouseMove (const QMouseEvent & event) Places the pointer at a move, except the button-less move Qt Quick sends after a touch release. |
| std::optional< QPointF > | position () const Returns the pointer position in plot-local logical pixels, or nothing while no pointer is over the plot. |
| void | press (const QMouseEvent & event) Places the pointer at a mouse or touch press. |
| void | release () Ends a press, on release or when the plot loses its grab. |
Detailed Description¶
A touch places the pointer where the finger is and leaves it there after the release, until the next tap or mouse movement.
Public Signals Documentation¶
signal changed¶
Emitted when the pointer moves, appears, or leaves.
Public Functions Documentation¶
function PointerTracker¶
Constructs a tracker owned by parent .
function hoverEnter¶
Places the pointer where the hover enters, unless a touch is in progress.
function hoverLeave¶
Removes the pointer when the mouse leaves; a touch pointer stays.
function hoverMove¶
Places the pointer at a hover move, which always comes from the mouse.
function mouseMove¶
Places the pointer at a move, except the button-less move Qt Quick sends after a touch release.
function position¶
Returns the pointer position in plot-local logical pixels, or nothing while no pointer is over the plot.
function press¶
Places the pointer at a mouse or touch press.
function release¶
Ends a press, on release or when the plot loses its grab.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/internal/PointerTracker.hpp