The CustomPlot class is a subclass of QCustomPlot, providing additional functionality and customization. More...
#include <customplot.h>
Public Slots | |
void | resetZoom () |
Slot function for handling zoom reset. | |
Signals | |
void | zoomReset () |
Signal emitted when the zoom is reset. | |
void | pointLeftSelected (QPointF point) |
Signal emitted when a data point on the left side is selected. | |
void | pointRightSelected (QPointF point) |
Signal emitted when a data point on the right side is selected. | |
Public Member Functions | |
CustomPlot (QWidget *parent=nullptr) | |
Constructs a CustomPlot object. | |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *event) override |
Reimplemented mousePressEvent from QCustomPlot. | |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
Reimplemented mouseDoubleClickEvent from QCustomPlot. | |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
Reimplemented mouseMoveEvent from QCustomPlot. | |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
Reimplemented mouseReleaseEvent from QCustomPlot. | |
virtual void | wheelEvent (QWheelEvent *event) override |
Reimplemented wheelEvent from QCustomPlot. | |
The CustomPlot class is a subclass of QCustomPlot, providing additional functionality and customization.
This class extends the QCustomPlot widget to handle mouse events and zoom reset functionality. It also includes methods for panning, retrieving points positions, and emitting signals for selected points.
|
explicit |
|
overrideprotectedvirtual |
Reimplemented mouseDoubleClickEvent from QCustomPlot.
event | The mouse double-click event. |
|
overrideprotectedvirtual |
Reimplemented mouseMoveEvent from QCustomPlot.
event | The mouse move event. |
|
overrideprotectedvirtual |
Reimplemented mousePressEvent from QCustomPlot.
event | The mouse press event. |
|
overrideprotectedvirtual |
Reimplemented mouseReleaseEvent from QCustomPlot.
event | The mouse release event. |
|
signal |
Signal emitted when a data point on the left side is selected.
point | The position of the selected point. |
|
signal |
Signal emitted when a data point on the right side is selected.
point | The position of the selected point. |
|
slot |
Slot function for handling zoom reset.
|
overrideprotectedvirtual |
Reimplemented wheelEvent from QCustomPlot.
event | The wheel event. |
|
signal |
Signal emitted when the zoom is reset.