编程成长之路

我们都是站在父母的肩上去看他们不曾看到的风景!加油!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Qt数据可视化项目

Posted on 2023-05-16 22:03  来颗维C  阅读(37)  评论(0编辑  收藏  举报

一、创建项目(步骤按常规来即可)

二、ui设计界面

image-20230516212332458

控件的使用

默认视角:Label标签和horizontalSlider标签

水平旋转:Label标签和horizontalSlider标签

垂直旋转:Label标签和horizontalSlider标签

缩放效果:Label标签和horizontalSlider标签

主题:Label标签和comboBox标签

图案的样式:Label标签和comboBox标签

选择模式:Label标签和comboBox标签

字体大小:Label标签和spinBox标签

参数的颜色选择:Push Button标签

其他部分:checkBox标签 GroundBox标签

转到槽

image-20230516213400332

image-20230516213428276

image-20230516213454014

image-20230516213526479

image-20230516213556818

image-20230516214101451

相同部件做相同的槽函数事件

为了避免混乱,对每个部件做名称的设置

代码部分

mainwindow.cpp添加

image-20230516214409365

mainwindow.h部分

image-20230516214549141