Qtimer Bloking Slots Value

时间:2017-02-27 12:07:48

标签: qt qtimer

嗨,我有一个相似的代码。我想为appering QMesaageBox添加一些延迟(6秒)。但在后台阅读2个端口。我不想延迟阻止端口值。

class Sleeper : public QThread
{
 public:
static void msleep(unsigned long msecs){QThread::msleep(msecs);}

 };

之前我使用的是QThread和这个线程bloking端口值?

switch (type){
case 1:

 notification manager for activity A

break:

case 2:

 notification manager for activity B

break:

}

0 个答案:

没有答案