class MyThread: public QThread{public void run();};void MyThread::run(){ .... exec();}
MyThread a;a.start();
MyThread *a=new MyThread();a->start();
MyEngine *Engineint main(){...Engine= new MyEngine(...);...}
extern MyEngine * EngineMyThread::run(){ Engine->method();//вот где собака зарыта}