On Monday 19 September 2016 18:35:43 Etienne Sandré-Chardonnal wrote:
> Yes, but for instance you can't move-pass an object between signals and
> slots across a queued connection, unless I'm wrong. You have to make your
> object implicitely shared. This causes lots of copies when passing a
> std::vector, for instance.
The Qt style on designing signals, is to use those for indicating that
something happened, but not passing the something in the signal. For example,
you get a signal that new data is available (e.g. a datagram), but you don't
get the datagram passed as signal argument.
Can you give an example of which signal requires passing a large std::vector
as argument, and ends up being a problem?
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
Interest mailing list