7 Star 18 Fork 27

LubanCat/embed_qt_develop_tutorial_code

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
threadkey.h 917 Bytes
一键复制 编辑 原始数据 按行查看 历史
taotaodiy 提交于 4年前 . 前15章节 例程
/******************************************************************
Copyright (C) 2019 - All Rights Reserved by
文 件 名 : threadkey.h --- ThreadKey
作 者 : Niyh(lynnhua)
论 坛 : http://www.firebbs.cn
编写日期 : 2019
说 明 :
历史纪录 :
<作者> <日期> <版本> <内容>
Niyh 2019 1.0.0 1 文件创建
*******************************************************************/
#ifndef THREADKEY_H
#define THREADKEY_H
#include <QThread>
class ThreadKey : public QThread
{
Q_OBJECT
public:
explicit ThreadKey(QObject *parent = 0, quint8 type = 0);
~ThreadKey();
void Stop();
signals:
void SltKeyPressed(const quint8 &type);
void signalKeyPressed(const quint8 &code,const quint8 &value);
public slots:
private:
protected:
quint8 m_nKeyType;
quint8 m_nKeyPressed;
bool m_bRun;
void run();
};
#endif // THREADKEY_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LubanCat/embed_qt_develop_tutorial_code.git
git@gitee.com:LubanCat/embed_qt_develop_tutorial_code.git
LubanCat
embed_qt_develop_tutorial_code
embed_qt_develop_tutorial_code
master

搜索帮助