摘要: 第一种创建: mythread1.h: #ifndef MYTHREAD_H #define MYTHREAD_H #include<QThread> #include<QDebug> class mythread:public QThread { public: mythread(const QS 阅读全文
posted @ 2020-07-09 23:58 sunshine_gzw 阅读(136) 评论(0) 推荐(0) 编辑
摘要: widget.h: #ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include<QEvent> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *paren 阅读全文
posted @ 2020-07-09 11:08 sunshine_gzw 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Widget.h: #ifndef WIDGET_H #define WIDGET_H #include <QWidget> #include<QKeyEvent> #include "mypushbutton.h" class Widget : public QWidget { Q_OBJECT 阅读全文
posted @ 2020-07-09 10:54 sunshine_gzw 阅读(662) 评论(0) 推荐(0) 编辑
摘要: Widget.h: #ifndef WIDGET_H #define WIDGET_H #include<QWidget> #include<QMouseEvent> class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *p 阅读全文
posted @ 2020-07-09 00:26 sunshine_gzw 阅读(283) 评论(0) 推荐(0) 编辑