Qt数据可视化

属性

  1. Q3DBars
属性 说明
graph3D->activeTheme()->setGridEnabled(checked); 设置网格
graph3D->setReflection(checked); 设置反射
graph3D->valueAxis()->setTitleVisible(checked); 设置轴标题
graph3D->rowAxis()->setTitleVisible(checked); 设置轴标题
graph3D->columnAxis()->setTitleVisible(checked); 设置轴标题
graph3D->activeTheme()->setLabelBackgroundEnabled(checked); 设置轴标签背景
graph3D->valueAxis()->setReversed(checked); z轴反向
graph3D->activeTheme()->setBackgroundEnabled(checked); 图表背景
graph3D->setSelectionMode(QAbstract3DGraph::SelectionFlags(index)); 选择模式
Q3DCamera::CameraPreset cameraPos=Q3DCamera::CameraPreset(index); 设置照相机
graph3D->scene()->activeCamera()->setCameraPreset(cameraPos); 设置视角
graph3D->scene()->activeCamera()->setCameraPosition(xRot, yRot,zoom); 设置水平移动,垂直移动,缩放
Q3DTheme *currentTheme = graph3D->activeTheme(); currentTheme->setType(Q3DTheme::Theme(index)); 设置主题
QFont font = graph3D->activeTheme()->font(); font.setPointSize(arg1); 获得字体
graph3D->activeTheme()->setFont(font); 设置字体
  1. QBar3DSeries(序列)
属性 说明
series->setMeshSmooth(checked); 光滑性
series->setItemLabelFormat(“value at (@rowLabel,@colLabel): %.1f”); 标签
series->setItemLabelVisible(checked); 标签可见
QAbstract3DSeries::Mesh aMesh=QAbstract3DSeries::Mesh(index+1); series->setMesh(aMesh); 设置棒图样式
QColor color=series->baseColor(); color=QColorDialog::getColor(color); 获取颜色
series->setBaseColor(color); 设置颜色

初始化函数解读


void MainWindow::iniGraph3D()
{
   
    graph3D = new Q3DBars();//创建可视化对象
    graphContainer = QWidget::createWindowContainer(graph3D); //创建容器,放入可
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值