1 Star 3 Fork 1

chen227 / rest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
widget.h 680 Bytes
一键复制 编辑 原始数据 按行查看 历史
chen227 提交于 2018-05-07 21:03 . 第一次提交
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QSystemTrayIcon>
#include <windows.h>
#ifdef Q_OS_WIN
#pragma comment(lib, "user32.lib")
#include <qt_windows.h>
#endif
#define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
void setSystemMenu();
public slots:
void systemExit(bool b);
void init();
void autoRun(bool run); //不好用
void autoRun2(bool run);
void QueryKey(HKEY hKey); //遍历注册表
private:
Ui::Widget *ui;
QSystemTrayIcon *trayIcon;
};
#endif // WIDGET_H
1
https://gitee.com/chen227/rest.git
git@gitee.com:chen227/rest.git
chen227
rest
rest
master

搜索帮助