[PyKDE] PyQt4 problem with QHostAddress
Andreas Pakulat
apaku at gmx.de
Thu Dec 29 14:32:58 GMT 2005
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.
Andreas
--
You have taken yourself too seriously.
More information about the PyQt
mailing list