aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/qobjectconnect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpyside/qobjectconnect.cpp')
-rw-r--r--sources/pyside6/libpyside/qobjectconnect.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside6/libpyside/qobjectconnect.cpp b/sources/pyside6/libpyside/qobjectconnect.cpp
index 03644ed84..568e248dd 100644
--- a/sources/pyside6/libpyside/qobjectconnect.cpp
+++ b/sources/pyside6/libpyside/qobjectconnect.cpp
@@ -182,8 +182,10 @@ QMetaObject::Connection qobjectConnect(QObject *source, QMetaMethod signal,
QObject *receiver, QMetaMethod slot,
Qt::ConnectionType type)
{
- return qobjectConnect(source, signal.methodSignature().constData(),
- receiver, slot.methodSignature().constData(), type);
+ PySide::SignalManager::registerMetaMethod(receiver,
+ slot.methodSignature().constData(),
+ slot.methodType());
+ return QObject::connect(source, signal, receiver, slot, type);
}
QMetaObject::Connection qobjectConnectCallback(QObject *source, const char *signal,