How to make QTcpSocket available from all functions in QThread class?
I will add bandwidth to my application. All the operations for socket does in socketThread class.
http://code.google.com/p/mediasrv/so.../trunk/src/srv
How to make QTcpSocket available from all functions in QThread class?
I will add bandwidth to my application. All the operations for socket does in socketThread class.
http://code.google.com/p/mediasrv/so.../trunk/src/srv
Subclass QThread (let it be MyThread) and add a memeber of type QTcpSocket to MyThread class.
I'm a rebel in the S.D.G.
Something like this.
Qt Code:
class MyThread : public Thread { public: MyThread(...); private: QTcpSocket *mSocket; };To copy to clipboard, switch view to plain text mode
I'm a rebel in the S.D.G.
Bookmarks