?? giant.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 + -