1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QCATEGORY3DAXIS_H
5#define QCATEGORY3DAXIS_H
6
7#include <QtGraphs/qabstract3daxis.h>
8
9QT_BEGIN_NAMESPACE
10
11class QCategory3DAxisPrivate;
12
13class Q_GRAPHS_EXPORT QCategory3DAxis : public QAbstract3DAxis
14{
15 Q_OBJECT
16 Q_DECLARE_PRIVATE(QCategory3DAxis)
17 Q_PROPERTY(QStringList labels READ labels WRITE setLabels NOTIFY labelsChanged FINAL)
18
19public:
20 explicit QCategory3DAxis(QObject *parent = nullptr);
21 ~QCategory3DAxis() override;
22
23 void setLabels(const QStringList &labels);
24 QStringList labels() const;
25
26Q_SIGNALS:
27 void rowLabelsChanged();
28 void columnLabelsChanged();
29
30private:
31 Q_DISABLE_COPY(QCategory3DAxis)
32
33 friend class QQuickGraphsBars;
34 friend class QQuickGraphsItem;
35};
36
37QT_END_NAMESPACE
38
39#endif
40

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtgraphs/src/graphs3d/axis/qcategory3daxis.h