代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。