@@ -498,7 +498,8 return Py_None; | |||||
498 | } |
|
498 | } | |
499 | } |
|
499 | } | |
500 | } |
|
500 | } | |
501 |
|
501 | // if no type id is available, conversion to a QVariant makes no sense/is not possible | ||
|
502 | if (info.typeId != PythonQtMethodInfo::Unknown) { | |||
502 | // for all other types, we use the same qvariant conversion and pass out the constData of the variant: |
|
503 | // for all other types, we use the same qvariant conversion and pass out the constData of the variant: | |
503 | QVariant v = PyObjToQVariant(obj, info.typeId); |
|
504 | QVariant v = PyObjToQVariant(obj, info.typeId); | |
504 | if (v.isValid()) { |
|
505 | if (v.isValid()) { | |
@@ -508,6 +509,7 return Py_None; | |||||
508 | } |
|
509 | } | |
509 | } |
|
510 | } | |
510 | } |
|
511 | } | |
|
512 | } | |||
511 | return ptr; |
|
513 | return ptr; | |
512 | } |
|
514 | } | |
513 |
|
515 |
General Comments 0
You need to be logged in to leave comments.
Login now