const-ref when sending signals in Qt
According to this answer, Qt just replaces const references with copies. EDIT: Apparently not always the case… I just did a basic test program with one thread, and the reference was passed correctly. Its const-ness remained intact, as well. Anyways, yes, you do need to be wary of the variable going out of scope, plus … Read more