QAbstractDataProxy Class
QAbstractDataProxy 类是所有数据可视化数据代理的基类。更多内容...
| 头文件: | #include <QAbstractDataProxy> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| 自: | QtDataVisualization 1.0 |
| 在 QML 中: | AbstractDataProxy |
| 继承自: | QObject |
| 被继承类: | |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新的代码中使用它。
公共类型
| enum | DataType { DataTypeNone, DataTypeBar, DataTypeScatter, DataTypeSurface } |
属性
- type : const DataType
公共函数
| virtual | ~QAbstractDataProxy() |
| QAbstractDataProxy::DataType | type() const |
详细说明
以下特定于可视化类型的派生类将代替基类使用:QBarDataProxy 、QScatterDataProxy 和QSurfaceDataProxy 。
有关详细信息,请参阅《Qt Data Visualization 数据处理》。
成员类型文档
enum QAbstractDataProxy::DataType
此枚举类型指定了代理的数据类型。
| 常量 | 值 | 描述 |
|---|---|---|
QAbstractDataProxy::DataTypeNone | 0 | 无数据类型。 |
QAbstractDataProxy::DataTypeBar | 1 | Q3DBars 的数据类型。 |
QAbstractDataProxy::DataTypeScatter | 2 | Q3DScatter 的数据类型。 |
QAbstractDataProxy::DataTypeSurface | 4 | Q3DSurface 的数据类型。 |
属性文档
[read-only] type : const 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.