diff --git a/src/PythonQt.cpp b/src/PythonQt.cpp index 4d01a15bb..e29498b29 100644 --- a/src/PythonQt.cpp +++ b/src/PythonQt.cpp @@ -260,6 +260,9 @@ void PythonQt::init(int flags, const QByteArray& pythonQtModuleName) PythonQtRegisterToolClassesTemplateConverterForKnownClass(QPen); PythonQtRegisterToolClassesTemplateConverterForKnownClass(QTextLength); PythonQtRegisterToolClassesTemplateConverterForKnownClass(QTextFormat); +#if QT_VERSION < 0x060000 + PythonQtRegisterToolClassesTemplateConverterForKnownClass(QMatrix); +#endif PyObject* pack = PythonQt::priv()->packageByName("QtCore"); PyObject* pack2 = PythonQt::priv()->packageByName("Qt"); diff --git a/src/PythonQtVariants.h b/src/PythonQtVariants.h index 833f35c8a..d2ba9eff6 100644 --- a/src/PythonQtVariants.h +++ b/src/PythonQtVariants.h @@ -72,6 +72,9 @@ #include #include #include +#if QT_VERSION < 0x060000 +#include +#endif #endif