[PyKDE] PyQt4 problem with QHostAddress

Phil Thompson phil at riverbankcomputing.co.uk
Wed Jan 4 00:00:50 GMT 2006


On Thursday 29 December 2005 2:32 pm, Andreas Pakulat wrote:
> Hi,
>
> just noticed that
>
> tcpClient = QtNetwork.QTcpSocket()
> tcpClient.connectTo(QtNetwork.QHostAddress(QtNetwork.QHostAddress.LocalHost
>), 32784)
>
> throws an "Unsupported socket operation".
>
> The same line with QHostAddress(QtCore.QString("127.0.0.1"), 32784)
> works.
>
> I have no idea why the LocalHost value does not work.

Fixed in tonight's snapshot.

Phil




More information about the PyQt mailing list