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?
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyKDE4.kio import KIO from PyKDE4.kdecore import * from PyKDE4.kdeui import * def job_test(): job = KIO.storedGet(KUrl("http://www.kde.org")) job.result.connect(slot_result) def slot_result(job): print job.url() def main(): app_name = "job_example" program_name = ki18n("KIO test program") about_data = KAboutData(QByteArray(app_name), "", program_name, QByteArray("0.1")) KCmdLineArgs.init(sys.argv, about_data) app = KApplication() job_test() QTimer.singleShot(3000, app.quit) app.exec_() if __name__ == '__main__': main()
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt