Gui: Fix possible crash when using Shiboken::Enum::getValue

Fixes #14156
This commit is contained in:
wmayer
2024-06-12 23:48:31 +02:00
committed by Chris Hennes
parent 87bf36fc58
commit 17eac1ab69
2 changed files with 29 additions and 25 deletions

View File

@@ -79,6 +79,9 @@ public:
QDir* toQDir(PyObject* pyobj);
static void createChildrenNameAttributes(PyObject* root, QObject* object);
static void setParent(PyObject* pyWdg, QObject* parent);
private:
qsizetype tryEnum(PyObject* pyPtr);
};
} // namespace Gui