Skip to content

Commit f4bc5e4

Browse files
committed
fixed QByteArrayList conversion, which is a registered type below QMetaType::User
1 parent 1f100ec commit f4bc5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PythonQtConversion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ PyObject* PythonQtConv::ConvertQtValueToPython(const PythonQtMethodInfo::Paramet
104104
}
105105
}
106106

107-
if (info.typeId >= QMetaType::User) {
107+
if (info.typeId >= QMetaType::User || info.typeId == QMetaType::QByteArrayList) {
108108
// if a converter is registered, we use is:
109109
PythonQtConvertMetaTypeToPythonCB* converter = _metaTypeToPythonConverters.value(info.typeId);
110110
if (converter) {
@@ -670,7 +670,7 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i
670670
}
671671

672672
// We only do this for registered type > QMetaType::User for performance reasons.
673-
if (info.typeId >= QMetaType::User) {
673+
if (info.typeId >= QMetaType::User || info.typeId == QMetaType::QByteArrayList) {
674674
// Maybe we have a special converter that is registered for that type:
675675
PythonQtConvertPythonToMetaTypeCB* converter = _pythonToMetaTypeConverters.value(info.typeId);
676676
if (converter) {

0 commit comments

Comments
 (0)