main.cpp
int main() { MyThread a; MyThread b; a.start(); b.start(); a.wait(); b.wait(); }mythread.h
class MyThread : public QThread { public: virtual void run(); };
mythread.cpp
main.cpp
int main() { MyThread a; MyThread b; a.start(); b.start(); a.wait(); b.wait(); }mythread.h
class MyThread : public QThread { public: virtual void run(); };
mythread.cpp