From 93a06f5edd6fe5d6dc74eab564b93b9b0968c6f8 Mon Sep 17 00:00:00 2001 From: karliss Date: Fri, 29 Nov 2024 18:18:46 +0200 Subject: [PATCH] Fix build failure against PySide >= 6.8 (#3395) --- src/common/PythonManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/PythonManager.cpp b/src/common/PythonManager.cpp index eb43b018e..dca8fcba9 100644 --- a/src/common/PythonManager.cpp +++ b/src/common/PythonManager.cpp @@ -133,7 +133,9 @@ void PythonManager::shutdown() Core()->setProperty("_PySideInvalidatePtr", QVariant()); // see PySide::destroyQCoreApplication() +# if QT_VERSION < QT_VERSION_CHECK(6, 8, 0) PySide::SignalManager::instance().clear(); +# endif Shiboken::BindingManager &bm = Shiboken::BindingManager::instance(); SbkObject *pyQApp = bm.retrieveWrapper(QCoreApplication::instance()); PyTypeObject *pyQObjectType = Shiboken::Conversions::getPythonTypeObject("QObject*");