qfedu-basic-level/day12/qtdemo4/widget.h

33 lines
523 B
C
Raw Permalink Normal View History

2023-06-28 23:02:58 +08:00
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QMovie>
#include <QDebug>
#include <QTimer>
#include <cstdlib>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
private slots:
void on_pushButton_clicked();
private:
Ui::Widget *ui;
int guessNum = 0;
int randNum = 0;
QMovie *yanhuagif;
QTimer *timer;
};
#endif // WIDGET_H