diff --git a/src/PythonQtClassInfo.cpp b/src/PythonQtClassInfo.cpp index 9e4524a6a..b730e982d 100644 --- a/src/PythonQtClassInfo.cpp +++ b/src/PythonQtClassInfo.cpp @@ -562,7 +562,7 @@ QStringList PythonQtClassInfo::memberList() } } -#if QT_VERSION >= 0x060000 +#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) QSet set(l.begin(), l.end()); return set.values(); #else diff --git a/src/PythonQtClassWrapper.cpp b/src/PythonQtClassWrapper.cpp index f8ca3febe..aaa6d84f4 100644 --- a/src/PythonQtClassWrapper.cpp +++ b/src/PythonQtClassWrapper.cpp @@ -477,7 +477,7 @@ static PyObject *PythonQtClassWrapper_getattro(PyObject *obj, PyObject *name) auto members = wrapper->classInfo()->memberList(); auto properties = wrapper->classInfo()->propertyList(); -#if QT_VERSION >= 0x060000 +#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)) QSet completeSet(members.begin(), members.end()); completeSet.unite(QSet(properties.begin(), properties.end())); #else