1 Star 7 Fork 6

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

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
settime.h 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
Towel Roll 提交于 2022-01-21 10:32 +08:00 . 第一次提交
#ifndef SETTIME_H
#define SETTIME_H
#include <QMainWindow>
#include <QDebug>
#include <QDateTime>
#include <QListWidgetItem>
#include "statusbar.h"
#include "backoff.h"
#define GEC6818_K4_STA _IOR('K', 3, unsigned long)
extern "C"
{
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
}
namespace Ui {
class SetTime;
}
class SetTime : public QMainWindow
{
Q_OBJECT
public:
explicit SetTime(QWidget *parent = nullptr);
~SetTime();
private slots:
void status();
void on_yes_clicked();
void on_no_clicked();
void showEvent(QShowEvent *event); //重写显示事件
void hideEvent(QHideEvent *event); //重写隐藏事件
void back(); //模拟汽车挂挡,判断是否开启倒车辅助
private:
Ui::SetTime *ui;
StatusBar *s;
QListWidgetItem *it_s;
QTimer *t_status;
int key_fd = -1; //键盘驱动文件标识符
QTimer *t_back; //back函数的定时器
int flag_event = 0; //事件标志位
};
#endif // SETTIME_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/towel-roll/SmartCarSystem.git
git@gitee.com:towel-roll/SmartCarSystem.git
towel-roll
SmartCarSystem
基于Arm和Qt的智能车载系统
V2.0

搜索帮助