X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=wizard%2Fqvariant_converter_old.py;h=33bc6887cfa2ab3e2f0286af11f9bfe8e1eb1237;hb=1dfc119210d048ac921c05ecbf7ce08fb24db461;hp=5e555b30db5b1dc1a730050fffb9254570870c9e;hpb=4507cea74049b0b4bf32ccfd4e4e58a150443a58;p=bertos.git diff --git a/wizard/qvariant_converter_old.py b/wizard/qvariant_converter_old.py index 5e555b30..33bc6887 100644 --- a/wizard/qvariant_converter_old.py +++ b/wizard/qvariant_converter_old.py @@ -42,11 +42,12 @@ def convertStringList(string_list): return QVariant(QStringList(result)) def getStringDict(qvariant): + a = str(qvariant.toByteArray()) if len(a) == 0: - dict_str_bool = {} + dict_str_str = {} else: - dict_str_bool = pickle.loads(a) - return dict_str_bool + dict_str_str = pickle.loads(a) + return dict_str_str def convertStringDict(string_dict): a = pickle.dumps(dict_str_str)