QTcpSocket – Unable to Connect

I’m doing a lot of programming with the Qt toolkit using Qt Creator.

In doing network programming, I can’t get a QTcpSocket to connect to a website.

Here is an example program. The connect will not call back the routines indicating that the connect either succeeded or failed. The program is based on this Qt Sample.

Can someone help with the problems.


Fill in a website and click connect. Watch the output for debug messages. The completion slots are not called.

I’m using Qt Creator 2.0.1 with Qt 4.7.1.

TcpConnectTest zip file of the sources.