Hello,

Yeah, it's possible that some metatype (used in signal) is registered in Qt 5.12 and is NOT registered in Qt 5.15, thus connection does not work between objects in different threads.

It's required to register it manually then.


On 9/26/2020 12:31 AM, Harri Porten wrote:
Hello Rainer,

On Thu, 24 Sep 2020, Rainer Wiesenfarth wrote:

I have a strange problem that for a certain queued signal/slot connection the signal is emitted, but the event does not reach the connected slot. This problem is reproducible in Qt 5.15.0, but does not occur in Qt 5.12.5. Unfortunately, the simple test program (see attached file) does not show the behavior.

Last time I saw something like this happening the bug was sought in Qt. But then found in the application :)

One of the QObjects lived in the wrong thread. Printing and comparing of QObject::thread() pointers helped to identify and fix the problem. A missing QObject::moveToThread() call iirc.

Harri.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to