[PyQt] Issue with latest PyQt4 and Qt5
Detlev Offenbach
detlev at die-offenbachs.de
Mon Jan 7 14:05:51 GMT 2013
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
--
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130107/92025d7b/attachment.html>
More information about the PyQt
mailing list