qtgraphs/examples/graphs/widgetgraphgallery/bargraph.h

28 lines
535 B
C
Raw Normal View History

2023-03-02 13:45:23 +00:00
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef BARGRAPH_H
#define BARGRAPH_H
#include <QtGraphs/q3dbars.h>
#include <QtCore/qobject.h>
#include "graphmodifier.h"
2023-03-02 13:45:23 +00:00
class BarGraph : public QObject
{
Q_OBJECT
public:
BarGraph();
~BarGraph();
void initialize();
QWidget *barsWidget() { return m_barsWidget; }
private:
GraphModifier *m_modifier = nullptr;
2023-03-02 13:45:23 +00:00
Q3DBars *m_barsGraph = nullptr;
QWidget *m_barsWidget = nullptr;
};
#endif