资源简介
Qt Thread,以前的文件损坏,重新上传
代码片段和文件信息
#include “firstthread.h“
FirstThread::FirstThread(Qobject *parent) :
Qobject(parent)
{
qDebug() << “---------FirshThread---------“ << QThread::currentThreadId();
connect(thisSIGNAL(outputmy())thisSLOT(inputmy()));
}
void FirstThread::input(int value)
{
int value1 = value;
emit outputmy();
emit output(value1);
qDebug() << QString(“---------void FirstThread::input(%1)“).arg(value) << QThread::currentThreadId();
}
void FirstThread::inputmy()
{
qDebug() << “--------void FirstThread::inputmy() “ << QThread::currentThreadId();
}
评论
共有 条评论