On Mon, 07 Jan 2013 15:05:51 +0100, Detlev Offenbach
det...@die-offenbachs.de wrote:
Hello,
I am facing an issue with latest PyQt4 snapshot and Qt5. It seems that
the
'setSocketDescriptor()' method of 'QAbstractSocket' is not working
correctly,
if PyQt4 is compiled against Qt5. How to reproduce it? Just start the
threadedfortunes.py script of the examples. Therafter follow the
instructions
given. Trying to get a fortune via the fortuneclient.py script makes the
later
script hang (i.e. no fortune is returned). It seems, that the socket is
not
connected in the server, which uses the incomingConnection() method of
QTcpServer.
The same issue happens with eric5 and Qt5 in the Cooperation functions.
eric5 and the a.m. example both work fine with PyQt4 built against Qt4.
Please note, that the signature of setSocketDescriptor method is
different
between Qt4 and Qt5. In Qt4 it is using an 'int' and in Qt5 a 'qintptr'.
However, the type of the descriptor passed to the
QTcpServer,incomingConnection() call is sip.voidptr (for Qt5).
Regards,
Detlev
Should be fixed in tonight's snapshot.
Thanks,
Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt