Qt Tips
QThreadのサブクラスを作成。 virtual void run(); を実装。
XXThread* thread = new XXThread; thread->start();
thread->wait(); でスレッドの終了を待つ。