The only way to enable threads, as demonstrated in the qt documentation, is to inherit QThread and then override its run () method.
class MyThread : public QThread { public: void run(); }; void MyThread::run() { QTcpSocket socket;
I wonder if there is a way to use a qt stream without inheriting from any qt objects?
c ++ multithreading qt
lyxera
source share