[PyQt] KAboutData() broken when using PyQt 4.4

Christoph Burgmer chrislb at gmx.de
Sat Jun 14 20:16:09 BST 2008


Just to make it clear, creating the correct type doesn't help:

from PyKDE4.kdecore import KAboutData, ki18n
from PyQt4.QtCore import QByteArray
aboutData = KAboutData("", "", ki18n(""), "")
aboutData = KAboutData(QByteArray(""), QByteArray(""), ki18n(""), 
QByteArray(""))

Gives the following:

Python 2.5.2 (r252:60911, May 28 2008, 08:35:32)
[GCC 4.2.4 (Debian 4.2.4-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyKDE4.kdecore import KAboutData, ki18n
>>> from PyQt4.QtCore import QByteArray
>>> aboutData = KAboutData("", "", ki18n(""), "")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: argument 1 of KAboutData() has an invalid type
>>> aboutData = KAboutData(QByteArray(""), QByteArray(""), ki18n(""), 
QByteArray(""))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: argument 1 of KAboutData() has an invalid type

Chris


More information about the PyQt mailing list