[Interest] Queued signals lost in 5.15.0 (works in 5.12.5) (Windows)

Alexander Dyagilev alervdvcw at gmail.com
Sat Sep 26 07:55:46 CEST 2020


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 at qt-project.org
> https://lists.qt-project.org/listinfo/interest


More information about the Interest mailing list