aboutsummaryrefslogtreecommitdiffstats
path: root/examples/scriptableapplication/pythonutils.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-29 08:34:56 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-30 21:10:26 +0200
commit525aa59e3871dccc0ffe6b1cb6441605e3635132 (patch)
tree7390997caaac7a77a8611018b0843fa2c1fcb9ce /examples/scriptableapplication/pythonutils.cpp
parent8e81ff9bf06043713a0f5f3727d52bc7ddf29dba (diff)
PySide6: Fix crashes in QObject.findChild()
For all objects encountered in findChild(), a wrapper was created just to be able to retrieve its type object and check against it. As there is a name lookup involved, it happens that non-QObject wrappers are created for this (in the specific case, an enum wrapper), which leads to crashes later on. Refactor the code, extracting a helper function to PySide which finds the best-matching type object for a QObject to check on that. Rearrange the check so that the name is checked first. Fixes: PYSIDE-1609 Change-Id: I026854201f3f6eca9e5905105127f0a4b4588fa9 Reviewed-by: Christian Tismer <tismer@stackless.com> (cherry picked from commit 98aef951920641dcdf4c217a0c51626cdf82caf8)
Diffstat (limited to 'examples/scriptableapplication/pythonutils.cpp')
0 files changed, 0 insertions, 0 deletions