[PyQt] PyKDE4 OpenUrlArguments metaData ( QMap ) is uneditable

Daniel Nagy DanielNagy at gmx.de
Tue Feb 12 23:51:05 GMT 2013


Hi, 

there is a PyKDE4-datatype at http://api.kde.org/pykde-4.7-api/kparts/KParts.OpenUrlArguments.html 
and I don't seem to be able to modify the QMap "metaData" property.
>From C++ you can easily do that, but not from python.
Here is how you can reproduce this issue:

$ python
>>> from PyKDE4.kparts import KParts
>>> oua = KParts.OpenUrlArguments()
>>> oua.metaData()["prop1"] = "val1"
>>> oua.metaData()
{}
>>>

So the QMap metaData remains empty. Do you have any hint on how I can edit this from within python?
I am using Python 2.7.3.

Thanks,
Daniel Nagy


More information about the PyQt mailing list