What's wrong with this connection??
Hi all, I have the following connection:
Code:
qRegisterMetaType<ManegadorParamsProcessat::ResultatProcessat>("ResultatProcessat");
connect(&fotosThread,
SIGNAL(nouFitxerProcessat
(const QString &,
ManegadorParamsProcessat::ResultatProcessat, double)), this,
SLOT(novaFotoProcessada
(const QString &, ManegadorParamsProcessat
::ResultatProcessat,
double)));
when I execute the program with gdb debugger it alerts me that QObject::connect cannot queue arguments of type 'ManegadorParamsProcessat::ResultatProcessat' :confused:
I've defined 'ManegadorParamsProcessat::ResultatProcessat' in this way:
Code:
enum ResultatProcessat {ProcessatCorrecte, AnomaliesContorn, NomesFons, FitxerInvalid, ProcessatManual, ProcessatInvalid};
in the class 'ManegadorParamsProcessat'. I make the include to this class in the header of the class where I do the connection. So I dont' know what's wrong, anybody knows it?
Thanks
Re: What's wrong with this connection??
Re: What's wrong with this connection??
Thanks jacek, i'm gonna try it as the other post comments. The strange of the situation is that the same connection worked inserting the 'ResultatProcessat' enum in the class of the object that emits the signal. Very strange :confused: Do you know the reason?
Re: What's wrong with this connection??
Quote:
Originally Posted by SkripT
the same connection worked inserting the 'ResultatProcessat' enum in the class of the object that emits the signal.
Did you declare this enum as public?
Re: What's wrong with this connection??
Yes, of course. Finally it works declaring it with typedef. Thanks again.