summaryrefslogtreecommitdiffstats
path: root/examples/charts/chartsgallery/scatterinteractionswidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/charts/chartsgallery/scatterinteractionswidget.h')
-rw-r--r--examples/charts/chartsgallery/scatterinteractionswidget.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/charts/chartsgallery/scatterinteractionswidget.h b/examples/charts/chartsgallery/scatterinteractionswidget.h
new file mode 100644
index 00000000..ba757c53
--- /dev/null
+++ b/examples/charts/chartsgallery/scatterinteractionswidget.h
@@ -0,0 +1,25 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#ifndef SCATTERINTERACTIONSWIDGET_H
+#define SCATTERINTERACTIONSWIDGET_H
+
+#include "contentwidget.h"
+
+QT_FORWARD_DECLARE_CLASS(QScatterSeries)
+
+class ScatterInteractionsWidget : public ContentWidget
+{
+ Q_OBJECT
+public:
+ explicit ScatterInteractionsWidget(QWidget *parent = nullptr);
+
+private slots:
+ void handleClickedPoint(const QPointF &point);
+
+private:
+ QScatterSeries *m_scatter = nullptr;
+ QScatterSeries *m_scatter2 = nullptr;
+};
+
+#endif