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()

删除抽象数据代理。

© 2025 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.