Signals
AZPlottingClass emits Qt signals for various user interactions.
Mouse Signals
| Signal | Description |
mouseMove(double x, double y) | Mouse moved over plot area |
mouseClick(double x, double y, Qt::MouseButton) | Mouse click on plot |
mouseDoubleClick(double x, double y) | Double-click on plot |
selectionChanged() | Selection rectangle changed |
Data Signals
| Signal | Description |
dataPointSelected(int series, int index) | Data point clicked |
rangeChanged(QCPRange xRange, QCPRange yRange) | View range changed |
legendClick(int seriesId) | Legend item clicked |
Usage Example
connect(plot, &AZPlottingClass::mouseMove, [](double x, double y) {
qDebug() << "Mouse at:" << x << y;
});
connect(plot, &AZPlottingClass::dataPointSelected,
[](int series, int index) {
qDebug() << "Selected point" << index << "in series" << series;
});