⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 giant.h

📁 QT方面的开发
💻 H
字号:
#ifndef GIANT_H#define GIANT_H#include <QThread>#include <QQueue>#include <QString>/* A fierce angry giant. All he does is yell into a   fifo queue. This demonstrates how to use queues   as a means of passing messages between threads.   *///startclass Giant :public QThread {    Q_OBJECT  public:    Giant();    void run();  public slots:    void hear(const QString& text);     void die();    void setDelay(int newDelay);  signals:    void say(QString line);    void small(QString line);    void giantDead();  private:    void process(QString message);    QString distort(QString text);    QQueue<QString> m_Fifo;    int m_Delay;    bool m_IsDead;    };//end#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -