Hi all, I have the following connection:
qRegisterMetaType<ManegadorParamsProcessat::ResultatProcessat>("ResultatProcessat");
connect(&fotosThread,
SIGNAL(nouFitxerProcessat
(const QString &,
ManegadorParamsProcessat::ResultatProcessat, double)), this,
SLOT(novaFotoProcessada
(const QString &, ManegadorParamsProcessat
::ResultatProcessat,
double)));
qRegisterMetaType<ManegadorParamsProcessat::ResultatProcessat>("ResultatProcessat");
connect(&fotosThread, SIGNAL(nouFitxerProcessat(const QString &,
ManegadorParamsProcessat::ResultatProcessat, double)), this,
SLOT(novaFotoProcessada(const QString &, ManegadorParamsProcessat::ResultatProcessat,
double)));
To copy to clipboard, switch view to plain text mode
when I execute the program with gdb debugger it alerts me that QObject::connect cannot queue arguments of type 'ManegadorParamsProcessat::ResultatProcessat'
I've defined 'ManegadorParamsProcessat::ResultatProcessat' in this way:
enum ResultatProcessat {ProcessatCorrecte, AnomaliesContorn, NomesFons, FitxerInvalid, ProcessatManual, ProcessatInvalid};
enum ResultatProcessat {ProcessatCorrecte, AnomaliesContorn, NomesFons, FitxerInvalid, ProcessatManual, ProcessatInvalid};
To copy to clipboard, switch view to plain text mode
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
Bookmarks