Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.corelib.thread.qthread.cpp

//! [0]
00002         class MyThread : public QThread
        {
        public:
            void run();
        };

00008         void MyThread::run()
        {
            QTcpSocket socket;
            // connect QTcpSocket's signals somewhere meaningful
            ...
            socket.connectToHost(hostName, portNumber);
            exec();
        }
//! [0]



Generated by  Doxygen 1.6.0   Back to index