1 Star 1 Fork 0

张杰sc/SerialPortTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
qtabout.h 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
张杰sc 提交于 2024-09-14 13:28 . 发布V1.0版本
#ifndef QTABOUT_H
#define QTABOUT_H
#pragma execution_character_set("utf-8")
#include <QDialog>
#include "singleton.h"
namespace Ui {
class QtAbout;
}
//关于信息结构体,可以自行增加其他内容
struct AboutInfo {
QString title; //软件标题
QString version; //软件版本
QString copyright; //版权所有
QString http; //官方网址
QString email; //联系电话
QString logo; //logo图片
AboutInfo() {
title = "串口调试助手";
version = "V20240914";
copyright = "zhangjie";
http = "https://github.com/zhangjiechina001/SerialPortTool";
email = "295737015@qq.com";
logo = ":/icon";
}
};
class QtAbout : public QDialog
{
Q_OBJECT SINGLETON_DECL(QtAbout)
public:
explicit QtAbout(QWidget *parent = 0);
~QtAbout();
protected:
void showEvent(QShowEvent *);
private:
Ui::QtAbout *ui;
//关闭窗体定时器
QTimer *timer;
private slots:
//初始化窗体数据
void initForm();
public:
//设置关于信息结构体数据
void setInfo(const AboutInfo &info, int timeout = 0);
};
#endif // QTABOUT_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang_jie_sc/serial-port-tool.git
git@gitee.com:zhang_jie_sc/serial-port-tool.git
zhang_jie_sc
serial-port-tool
SerialPortTool
master

搜索帮助