Fix build failure against PySide >= 6.8 (#3395)

This commit is contained in:
karliss 2024-11-29 18:18:46 +02:00 committed by GitHub
parent 3ddb1b9a58
commit 93a06f5edd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,9 @@ void PythonManager::shutdown()
Core()->setProperty("_PySideInvalidatePtr", QVariant()); Core()->setProperty("_PySideInvalidatePtr", QVariant());
// see PySide::destroyQCoreApplication() // see PySide::destroyQCoreApplication()
# if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
PySide::SignalManager::instance().clear(); PySide::SignalManager::instance().clear();
# endif
Shiboken::BindingManager &bm = Shiboken::BindingManager::instance(); Shiboken::BindingManager &bm = Shiboken::BindingManager::instance();
SbkObject *pyQApp = bm.retrieveWrapper(QCoreApplication::instance()); SbkObject *pyQApp = bm.retrieveWrapper(QCoreApplication::instance());
PyTypeObject *pyQObjectType = Shiboken::Conversions::getPythonTypeObject("QObject*"); PyTypeObject *pyQObjectType = Shiboken::Conversions::getPythonTypeObject("QObject*");