[Interest] Signal with QString argument from another thread.
Thiago Macieira
thiago.macieira at intel.com
Tue Oct 6 23:40:40 CEST 2015
On Tuesday 06 October 2015 23:54:30 Igor Mironchik wrote:
> > And QString, like other Qt value classes, should be treated like an int.
> > You're not asking that question about an int argument, so you shouldn't
> > have to ask about a QString argument.
>
> Not sure that I understood you correctly...
>
> If I pass argument to the signal by const-ref and signal posted to
> another thread then data will be fully copied? Or just a const-ref will
> be initialized in the event? And what will be if signal and slot in one
> thread? Will be data copied fully too or signal will just invoke slot
> and pass him const-ref?
const-ref and by-value are the exact same for the signal-slot system. What
applies to one, applies to the other.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list