PDA

View Full Version : queued signal/slot connection with QList<int>



smalls
7th February 2006, 01:14
hi all,

i get the following error message in debug mode when signal is emitted (which is connected to a slot in another thread)


QObject::connect: Cannot queue arguments of type 'const QList<int>'

how can i solve the problem without reinventing a list of ints???

greetz
smalls

jacek
7th February 2006, 01:19
Try:
typedef QList<int> IntList;
// ...
qRegisterMetaType< IntList >( "IntList" );

smalls
7th February 2006, 15:32
it works, thanks!