Hello,
I'm trying to pass a QStringList using the signal slot, but when I try to use the QStringList in the slot it contains garbage (and exceptions). I set up the "connect" call to use QStringList* because otherwise the connect call fails.
m_pkr_receiver_class,
Qt::QueuedConnection);
QObject::connect (m_emitter_class,
SIGNAL(removeGamesSignal (int, QStringList* )),
m_pkr_receiver_class,
SLOT(invokeGamesRemoval (int, QStringList* )),
Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
I then tried the following as well:
SIGNAL(removeGamesSignal (int, QStringList& )),
m_pkr_receiver_class,
SLOT(invokeGamesRemoval (int, QStringList& )),
Qt::QueuedConnection);
QObject::connect (m_emitter_class,
SIGNAL(removeGamesSignal (int, QStringList& )),
m_pkr_receiver_class,
SLOT(invokeGamesRemoval (int, QStringList& )),
Qt::QueuedConnection);
To copy to clipboard, switch view to plain text mode
This does not work, the error says:
QObject::connect: Cannot queue arguments of type 'QStringList&'
When I use Qt:: DirectConnection with the 'QStringList&' signature the QObject::connect suceeds.
It is possible to send a QStringList using a signal and Qt::QueuedConnection?
Thanks,
DP
Bookmarks