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