diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-02-03 11:47:17 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-02-11 15:40:44 +0100 |
| commit | c1b62556bffbdd2b5e5eecc790ec4732b93e05a1 (patch) | |
| tree | e11589a692706b59a70ebcf41e93df07f2db2573 /sources/pyside6/tests/pysidetest/testobject.cpp | |
| parent | a7b1ef20fe791ac6bec92d1f05904ff14bc34e5b (diff) | |
Fix crash of signals with object-type parameter being passed by const-ref
Add a further indirection in callPythonMetaMethodHelper()
when only a pointer conversion is available for a const-ref parameter.
Task-number: PYSIDE-3004
Change-Id: I6ec7c5a9d4d30c8e4973ec79534d5f3eb3bf8204
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/testobject.cpp')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/testobject.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/testobject.cpp b/sources/pyside6/tests/pysidetest/testobject.cpp index bcf629bf8..3107be09a 100644 --- a/sources/pyside6/tests/pysidetest/testobject.cpp +++ b/sources/pyside6/tests/pysidetest/testobject.cpp @@ -47,6 +47,11 @@ void TestObject::emitFlagsSignal(Qt::Alignment alignment) emit flagsSignal(alignment); } +void TestObject::emitObjectByConstRef() +{ + emit objectByConstRef(*this); +} + void TestObject::setQLatin1String(QLatin1String v) { m_qLatin1String = v; |
