#include "dottextautorepeat.h" DotTextAutoRepeat::DotTextAutoRepeat() { this->stop = false; } DotTextAutoRepeat::~DotTextAutoRepeat() { qDebug()<stop = true; } void DotTextAutoRepeat::run() { int i=1; while(!stop) { if(i>6) i=1; emit showText(QString(".").leftJustified(i++,'.')); msleep(500); } }