[PyQt] KConfigSkeleton and pyqt4 API version 2

Wolfgang Rohdewald wolfgang at rohdewald.de
Thu Sep 16 23:11:18 BST 2010


Hi, 

this code prints random output. How should I fix this?

import sip
sip.setapi('QString', 2)

from PyKDE4.kdeui import KConfigSkeleton

a = KConfigSkeleton()
name = 'tilesetName'
value = 'I am a value'
s = a.addItemString(name, value)
print s.value()

====== output: ======
value is: 䱀Ɨ!䱠Ɨ彐Ɨ美繈
*** glibc detected *** python: corrupted double-linked list: 
0x0000000001975f50 ***



ii  python-qt4                                         
4.7.3-1ubuntu2~lucid1~ppa3                      Python bindings 
for Qt4

ii  python-kde4                                        
4:4.5.1-0ubuntu1~lucid1~ppa1                    Python bindings 
for the KDE 4 libraries


-- 
Wolfgang


More information about the PyQt mailing list