diff options
author | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:19:39 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:19:39 +0300 |
commit | 40fdea15e6545292212ea6c4acc78c3b2975cbd8 (patch) | |
tree | a2209393036458904f52cc418c708a20abcc1fac /sources/pyside2/libpyside/pyside.h | |
parent | d8f02ce77a4143aa4e7e6c4f7892e6a943c46b3c (diff) | |
parent | 63d49d3651257452b9be3982cac573971995e230 (diff) |
Merge tag 'v5.15.6-lts' into tqtc/lts-5.15-opensourcev5.15.6-lts-lgpl
Qt For Python Release 5.15.6
Change-Id: I7a6874dfca79fbc46f5a6101e713b0c1dde9a640
Diffstat (limited to 'sources/pyside2/libpyside/pyside.h')
-rw-r--r-- | sources/pyside2/libpyside/pyside.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/libpyside/pyside.h b/sources/pyside2/libpyside/pyside.h index a465fec47..c72f37ae7 100644 --- a/sources/pyside2/libpyside/pyside.h +++ b/sources/pyside2/libpyside/pyside.h @@ -140,6 +140,11 @@ PYSIDE_API void setNextQObjectMemoryAddr(void *addr); PYSIDE_API PyObject *getWrapperForQObject(QObject *cppSelf, SbkObjectType *sbk_type); +/// Return the best-matching type for a QObject (Helper for QObject.findType()) +/// \param cppSelf QObject instance +/// \return type object +PYSIDE_API PyTypeObject *getTypeForQObject(const QObject *cppSelf); + #ifdef PYSIDE_QML_SUPPORT // Used by QtQuick module to notify QtQml that custom QtQuick items can be registered. typedef bool (*QuickRegisterItemFunction)(PyObject *pyObj, const char *uri, int versionMajor, |