13 auto mod = PyImport_ImportModule(
"qtpy.QtCore");
18 auto it = hash.constBegin();
19 auto end = hash.constEnd();
23 auto *k =
new KwArgs::key_type(it.key());
24 auto *kobj = sipAPI->api_convert_from_new_type(k, sipAPI->api_find_type(
"QString"), Py_None);
31 auto *v =
new KwArgs::mapped_type(it.value());
32 auto *vobj = sipAPI->api_convert_from_new_type(v, sipAPI->api_find_type(
"QVariant"), Py_None);
40 auto rc = PyDict_SetItem(d.ptr(), kobj, vobj);