Is it a good idea to pass big parameters with signal and slot mechanism such as XML files, structs and classes? Are there any restriction and what can be the alternatives?
Printable View
Is it a good idea to pass big parameters with signal and slot mechanism such as XML files, structs and classes? Are there any restriction and what can be the alternatives?
The argument is going to be copied, so you have to consider that cost. Consider using one of Qt's implicitely shared classes, then you will have no problem at all.
I think it is only copied when using a Queued connection. Spud: Do you have a reference for always copying?