[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] Regression in PyKDE4 with SIP 4.11 (with testcase)
From: Luca Beltrame <einar () heavensinferno ! net>
Date: 2010-09-29 8:12:52
Message-ID: 201009291012.57368.einar () heavensinferno ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
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?
["test.py" (text/x-python)]
#!/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" (application/pgp-signature)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic