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

Thiago Macieira thiago.macieira at intel.com
Wed Feb 22 20:55:24 CET 2017


On quarta-feira, 22 de fevereiro de 2017 11:33:01 PST Alexander Dyagilev 
wrote:
> Why?

Because there's a problem elsewhere in your code. Are you sure the receiver 
object wasn't deleted?

> emit is called; slot is NOT called.
> 
> I use QSharedPointer<MyDataType> in slot/signal.
> 
> MyDataType is a struct declared as metatype.

Are threads involved? 

Did Qt print any warnings? Please run your code with QT_FATAL_WARNINGS=1 and 
fix all warnings.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list