> hi friends,
> is it possible ti send data structure through connect from one object to
> another ...
> how ..?
Well, have you tried something that didn't work? Do you want to use
direct connections or queued connections? For direct connections, just
pass the structure by reference or by value as described in the
void mySlot(MyStruct struct)
connect(obj1, SIGNAL(mySig(MyStruct)), obj2, SLOT(mySlot(MyStruct)));
void mySlot(MyStruct &struct)
connect(obj1, SIGNAL(mySig(MyStruct &)), obj2, SLOT(MySlot(MyStruct&)));
I don't think you can send references in queued connections.
Qt-interest mailing list