1 Star 7 Fork 6

Towel Roll/基于Arm和Qt的智能车载系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
statusbar.cpp 681 Bytes
一键复制 编辑 原始数据 按行查看 历史
Towel Roll 提交于 2022-01-21 10:32 +08:00 . 第一次提交
#include "statusbar.h"
#include "ui_statusbar.h"
StatusBar::StatusBar(QWidget *parent) :
QWidget(parent),
ui(new Ui::StatusBar)
{
ui->setupUi(this);
//模拟显示电量
ui->Battery_pb->setValue(90);
//定时器显示时间
time = new QTimer(this);
//
connect(time,SIGNAL(timeout()),this,SLOT(show_time()));
time->start(500);
}
StatusBar::~StatusBar()
{
time->stop();
delete time;
delete ui;
qDebug()<<"~StatusBar"<<endl;
}
void StatusBar::show_time()
{
ui->Time_lb->setText(QTime::currentTime().toString("hh:mm"));
}
//按下返回时flag变为1
void StatusBar::on_Return_bt_clicked()
{
flag_return = 1;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/towel-roll/SmartCarSystem.git
git@gitee.com:towel-roll/SmartCarSystem.git
towel-roll
SmartCarSystem
基于Arm和Qt的智能车载系统
V2.0

搜索帮助