summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/graphgallery/scattergraph.h
blob: eb8c7c5275dd9d9c654cae2fc0768bf7a425d5c3 (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
26
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef SCATTERGRAPH_H
#define SCATTERGRAPH_H

#include <QtCore/qobject.h>
#include <QtDataVisualization/q3dscatter.h>

class ScatterGraph : public QObject
{
    Q_OBJECT
public:
    ScatterGraph();
    ~ScatterGraph();

    bool initialize(const QSize &minimumGraphSize, const QSize &maximumGraphSize);
    QWidget *scatterWidget() { return m_scatterWidget; }

private:
    Q3DScatter *m_scatterGraph = nullptr;
    QWidget *m_container = nullptr;
    QWidget *m_scatterWidget = nullptr;
};

#endif