[Interest] QObject::connect returns true, but the connection does not work

Jason H jhihn at gmx.com
Wed Feb 22 20:50:37 CET 2017



> Sent: Wednesday, February 22, 2017 at 2:33 PM
> From: "Alexander Dyagilev" <alervdvcw at gmail.com>
> To: "interest at qt-project.org" <interest at qt-project.org>
> Subject: [Interest] QObject::connect returns true, but the connection does not work
>
> Why?
> 
> emit is called; slot is NOT called.
> 
> I use QSharedPointer<MyDataType> in slot/signal.
> 
> MyDataType is a struct declared as metatype.


Generally when this happens, it means you didn't connect the signal to the slot from the instance you though to the receiver that you thought.



More information about the Interest mailing list