class MyClass : public QThread
{
MyClass(unsigned long ms) { time = ms; start();}
void run(){ while(true) { cycle();msleep(time);}}
void cycle() { qDebug() << "Hello MyClass";}
private:
unsigned logn time;
}
class MyClass2 : public MyClass
{
MyClass2() : MyClass(100) {}
void cycle() { qDebug() << "cycle...";}
}