void GA::gaUpdate(){ timer.stop(); myPop->nextGeneration(mutationChance, mutationAmout, breedingCutOffParents, genCount+1); Candidate fittest = myPop->getFittest(); if((genCount+1) % 10 == 0){ qDebug()<<"Generation:"<<genCount+1; qDebug()<<"Fittest:"<<fittest.getFitness(); } genCount++; /// DRAW FITTEST SET OF POLYGONS ON THE ACTUAL DRAWING! fittest.drawAllPolys(drawing); /// Update label my sending Pixmap via signal emit new_drawing_created(drawing); timer.start(); }