资源简介
Qt动态圆形进度条。
这个系非常非常漂亮滴。欢迎大家可以学习。

代码片段和文件信息
#include “frmroundplot.h“
#include “ui_frmroundplot.h“
frmRoundPlot::frmRoundPlot(QWidget *parent) :
QWidget(parent)
ui(new Ui::frmRoundPlot)
{
ui->setupUi(this);
this->initForm();
on_pushButton_clicked();
}
frmRoundPlot::~frmRoundPlot()
{
delete ui;
}
void frmRoundPlot::initForm()
{
ui->widget2->setUsedColor(QColor(41 137 219));
ui->widget2->setFreeColor(QColor(50 50 50));
ui->widget2->setRangeTextColor(QColor(103 103 103));
ui->widget2->setValueTextColor(QColor(250 250 250));
ui->widget2->setValueBgColor(QColor(45 169 222));
ui->widget2->setOutBgColor(QColor(202 225 255));
ui->widget2->setCenterBgColor(QColor(67 205 128) QColor(60 179 113));
}
void frmRoundPlot::on_pushButton_clicked()
{
QString unit = ui->txtUnit->text();
double minValue = ui->txtMinValue->text().toDouble();
double maxValue = ui->txtMaxValue->text().toDouble();
double value = ui->txtValue->text().toDouble();
ui->widget1->setUnit(unit);
ui->widget1->setRange(minValue maxValue);
ui->widget1->setValue(value);
ui->widget2->setUnit(unit);
ui->widget2->setRange(minValue maxValue);
ui->widget2->setValue(value);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-27 20:22 RoundPlot\
文件 1255 2016-10-29 18:38 RoundPlot\frmroundplot.cpp
文件 396 2016-10-16 14:18 RoundPlot\frmroundplot.h
文件 3102 2016-10-15 14:32 RoundPlot\frmroundplot.ui
文件 187 2016-10-29 18:29 RoundPlot\main.cpp
文件 6767 2016-10-29 18:41 RoundPlot\roundplot.cpp
文件 3150 2016-10-22 21:07 RoundPlot\roundplot.h
文件 428 2016-10-29 18:29 RoundPlot\RoundPlot.pro
文件 23908 2017-12-27 20:22 RoundPlot\RoundPlot.pro.user
相关资源
- Qt界面外观
- [嵌入式Linux项目实战开发]基于QT4.7.
- Qt GUI 界面通用系统模板 源码
- 网上的一款QT界面设计的电子地图
- 二维码解析
- linux下关于Qt界面的摄像头v4l2操作源码
- 360UI完美界面
- 净化设备管理
- 基于qt界面的语音交互软件
- 综合组件的界面
- opencv打开图片并显示在Qt界面上
- Qt360 界面
- 动态绘制曲线
- QtitanRibbon3.zip
- VS+QT环境下读取excel文件到QT界面,并
- 基于嵌入式QT界面GPS定位系统
- [嵌入式Linux项目实战开发]基于QT4.7.
- 物联网 智能家居 Qt界面
- 将QT界面做成dll在qt其他程序中调用
-
将xm
l内容显示Qt界面 - DS18B20测温及QT界面实现
- qt界面跳转切换
- 基于v4l的视频采集显示程序。外加Q
- QT计算器界面和计算器功能实现
- qt界面连接wifi
- myseria串口
- 基于Qt界面显示的温湿度检测
- Qt界面多线程opencv调用摄像头
- 智慧大棚QT界面设计
- Qt高仿网易云音乐界面源码
评论
共有 条评论