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 |
| 被继承自: |
- 所有成员列表(包括继承的成员)
- QAbstractDataProxy 是Qt Graphs 3D C++ 类库的一部分。
公共类型
| 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::None | 0 | 无数据类型。 |
QAbstractDataProxy::DataType::Bar | 1 | Q3DBarsWidgetItem 的数据类型。 |
QAbstractDataProxy::DataType::Scatter | 2 | Q3DScatterWidgetItem 的数据类型。 |
QAbstractDataProxy::DataType::Surface | 3 | Q3DSurfaceWidgetItem 的数据类型。 |
属性文档
[read-only] type : const QAbstractDataProxy::DataType
该属性存储代理的数据类型。
访问函数:
| QAbstractDataProxy::DataType | type() const |
© 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.