void HashGenerator::spawnThread() { HashThread* temp; qDebug() << "Spawning a thread"; temp = new HashThread(keys); //Progress this->connect(temp, SIGNAL(hashComputed()), this, SLOT(computeProgress())); //Target Found this->connect(temp, SIGNAL(matchFound(QString,QString,QString)), this, SIGNAL(targetFound(QString,QString,QString))); //Thread Done this->connect(temp, SIGNAL(done()), this, SLOT(threadDone())); this->threadCount++; this->threadPool->append( temp ); temp->start(); if(this->hashActive){ this->threadsActive++; temp->hash(); } }