Gh0str1d3r
13th July 2010, 17:56
Hi,
I am not able to establish a queued connection of the form
connect(parent(),SIGNAL(signal(QList<const RealDataHandler *>,RealDataHandler *,double)),&calculationClass,SLOT(slot(QList<const RealDataHandler*>,RealDataHandler*,double)));
I always get the following error:
QObject::connect: Cannot queue arguments of type 'QList<const RealDataHandler*>'
(Make sure 'QList<const RealDataHandler*>' is registered using qRegisterMetaType().)
I already registered both, RealDataHandler and QList<const RealDataHandler*> as the very first command of my main.cpp, even tried it with RealDataHandler* allone.
typedef QList<const RealDataHandler*> RealDataHandlerList;
// ....
qRegisterMetaType<RealDataHandler>("RealDataHandler");
qRegisterMetaType<RealDataHandlerList >("RealDataHandlerList");
I really don't understand this. It should not be so difficult to send a list of pointers, should it? Can anyone explain to me what I am doing wrong? Many thanks.
I am not able to establish a queued connection of the form
connect(parent(),SIGNAL(signal(QList<const RealDataHandler *>,RealDataHandler *,double)),&calculationClass,SLOT(slot(QList<const RealDataHandler*>,RealDataHandler*,double)));
I always get the following error:
QObject::connect: Cannot queue arguments of type 'QList<const RealDataHandler*>'
(Make sure 'QList<const RealDataHandler*>' is registered using qRegisterMetaType().)
I already registered both, RealDataHandler and QList<const RealDataHandler*> as the very first command of my main.cpp, even tried it with RealDataHandler* allone.
typedef QList<const RealDataHandler*> RealDataHandlerList;
// ....
qRegisterMetaType<RealDataHandler>("RealDataHandler");
qRegisterMetaType<RealDataHandlerList >("RealDataHandlerList");
I really don't understand this. It should not be so difficult to send a list of pointers, should it? Can anyone explain to me what I am doing wrong? Many thanks.