summaryrefslogtreecommitdiffstats
path: root/examples/charts/gallery/scatterinteractionswidget.h
blob: ba757c53a5cb1c06e182d0628bd1ba9666d64e87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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