QMap Signal/Slot issue
-
Hi, I have a problem with Signal and Slot.
I have an object that contains a QMap<quint64,QString> and other variable members. I emit the object as signal and receive it as slot. The object that I receive has all the members of the object emitted except the QMap which is empty.I tried to qDebug() the map just before emit and in the slot and it looks like the map existed before and was empty after...
Can anybody help?
Thanks
G.
-
Hi
Have you tested that Your class is copyable ?
I assume when the class is emitted its a copy and not the actual class, as in a pointer?void TestFunc( YourClass A) { // no * or & here
is lists still filled here for A
}--main--
YourClass mine;
// fill the qmap
TestFunc(mine); -
Hi,
Can you share the code where you emit the signal ?