Moved to https://github.com/MeVisLab/pythonqt/pull/1
Hi, Background When running some Python code from PythonQt the other day, I got a segfault in PythonQtConversion.cpp. It turned out that when an Enum based class is processed by PyObjToQVariant, it's recognised as a sequence (since it's possible to iterate over an Enum in Python), but PySequence_GetItem returns nullptr when the loop gets the value to add to the QVariantList, causing the segfault when calling PyObjToVariant with a null pointer. Unless Enums should be treated in a special way, I assume...
Hi, Background When running some Python code from PythonQt the other day, I got a segfault in PythonQtConversion.cpp. It turned out that when an Enum based class is processed by PyObjToQVariant, it's recognised as a sequence (since it's possible to iterate over an Enum in Python), but PySequence_GetItem returns nullptr when the loop gets the value to add to the QVariantList, causing the segfault when calling PyObjToVariant with a null pointer. Unless Enums should be treated in a special way, I assume...
Hi, Background When running some Python code from PythonQt the other day, I got a segfault in PythonQtConversion.cpp. It turned out that when an Enum based class is processed by PyObjToQVariant, it's recognised as a sequence (since it's possible to iterate over an Enum in Python), but PySequence_GetItem returns nullptr when the loop gets the value to add to the QVariantList. Unless Enums should be treated in a special way, I assume that the best is to handle them as "normal" classes. In order to...
Please see attached patches for building with Qt 5.9.1 under Debian.
Regarding configure_python.patch, how about removing the line PYTHON_VERSION=$$(PYTHON_VERSION)? Then PYTHON_VERSION can be selected by setting it as a parameter to qmake instead of exporting it as an environment variable.
The patch (with Unix and Windows line endings).
Here is a patch to create pkg-config files when building for Linux.