Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Signal-slot and rvalue references

$
0
0
Hi! I would like to ask how exactly the signal-slot mechanism is implemented under the hood, and whether it makes use of rvalue references if I toss one at it. I only ask because I am developing an application that will pass potentially large objects around, or simply ones that take time to initialize. I do know however that these objects will be destroyed once the emit signal has been issued, and I would like to make use of move ctors, either those that I write, or those that are predefined by Qt (if there are any). Custom made ctors would include GPU mem object wrapper classes, and I would expect objects lie QByteStream and alike to have their own. Are these feature supported, or is passing std::shared_ptr (or QSharedPointer) the best way to pass on large objects like this?

Viewing all articles
Browse latest Browse all 13965

Trending Articles