def getStringDict(qvariant):
dict_str_str = {}
try:
- for key, value in qvariant.toMap().items():
- dict_str_str[unicode(key)] = unicode(value.toString())
+ for key, value in qvariant.toPyObject().items():
+ dict_str_str[unicode(key)] = unicode(value)
except:
pass
return dict_str_str
def getDict(qvariant):
dict_str_variant = {}
try:
- for key, value in qvariant.toMap().items():
+ for key, value in qvariant.toPyObject().items():
dict_str_variant[unicode(key)] = value
except:
pass