[PyQt] Regression in PyKDE4 with SIP 4.11 (with testcase)

Luca Beltrame einar at heavensinferno.net
Wed Sep 29 09:12:52 BST 2010


Hello, 

I recently updated to SIP 4.11 and right now some wrappings in PyKDE4 from the 
KDE 4.5.x branch (hence unchanged since a while) started misbehaving.
In more detail, when this sample code is run, it will trigger an exception. 
Previous versions of SIP worked fine.

If you execute the attached test program with PyKDE 4.5 and SIP 4.11, you will 
get the following error:

Traceback (most recent call last):
  File "test.py", line 36, in <module>
    main()
  File "test.py", line 31, in main
    job_test()
  File "test.py", line 16, in job_test
    job.result.connect(slot_result)
TypeError: C++ type 'QPair<QString,QString>' is not supported as a native Qt 
signal type

Also dir() on the job reveals no attributes or methods. Is this a fault of 
PyKDE4, or a regression in SIP?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 728 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100929/cb97c129/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100929/cb97c129/attachment.pgp>


More information about the PyQt mailing list