本页内容

QAbstractDataProxy Class

QAbstractDataProxy 类是所有 3D 图代理的基类。更多内容...

头文件: #include <QAbstractDataProxy>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
在 QML 中: AbstractDataProxy
继承自: QObject
被继承自:

QBarDataProxy、QScatterDataProxy ,以及QSurfaceDataProxy

公共类型

enum class DataType { None, Bar, Scatter, Surface }

属性

  • type : const QAbstractDataProxy::DataType

公共函数

virtual ~QAbstractDataProxy() override
QAbstractDataProxy::DataType type() const

详细说明

以下图表类型会使用特定的派生类代替基类:QBarDataProxy 、QScatterDataProxy 和QSurfaceDataProxy 。

有关详细信息,请参阅Qt Graphs 中的“3D 数据处理”。

成员类型文档

enum class QAbstractDataProxy::DataType

此枚举类型指定了代理的数据类型。

常量值描述
QAbstractDataProxy::DataType::None0无数据类型。
QAbstractDataProxy::DataType::Bar1Q3DBarsWidgetItem 的数据类型。
QAbstractDataProxy::DataType::Scatter2Q3DScatterWidgetItem 的数据类型。
QAbstractDataProxy::DataType::Surface3Q3DSurfaceWidgetItem 的数据类型。

属性文档

[read-only] type : const QAbstractDataProxy::DataType

该属性存储代理的数据类型。

访问函数:

QAbstractDataProxy::DataType type() const

成员函数文档

[override virtual noexcept] QAbstractDataProxy::~QAbstractDataProxy()

删除抽象数据代理。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.