I've checked that example and Qt sources and it looks like emit makes a copy of those parameters, even when you pass then as a reference.Originally Posted by SkripT
I hope you have noticed this:
With queued connections, Qt must store a copy of the arguments that were passed to the signal so that it can pass them to the slot later on. Qt knows how to take of copy of many C++ and Qt types, but QImage isn't one of them. We must therefore call the template function qRegisterMetaType() before we can use QImage as parameter in queued connections.
Bookmarks