Đỗ Thu Hiền
New member
How do you create a thread in Qt?
Answer
Creating a Thread
To create a thread, subclass QThread and reimplement its run() function. For example: class MyThread : public QThread { Q_OBJECT protected: void run(); }; void MyThread::run() { … }
Answer
Creating a Thread
To create a thread, subclass QThread and reimplement its run() function. For example: class MyThread : public QThread { Q_OBJECT protected: void run(); }; void MyThread::run() { … }