資源簡介
Qt Thread,以前的文件損壞,重新上傳
代碼片段和文件信息
#include?“firstthread.h“
FirstThread::FirstThread(Qobject?*parent)?:
????Qobject(parent)
{
????qDebug()?<“---------FirshThread---------“?<????connect(thisSIGNAL(outputmy())thisSLOT(inputmy()));
}
void?FirstThread::input(int?value)
{
?????int?value1?=?value;
?????emit?outputmy();
?????emit?output(value1);
?????qDebug()?<}
void?FirstThread::inputmy()
{
?????qDebug()?<“--------void?FirstThread::inputmy()?“?<}
評論
共有 條評論