Philippe
2017-12-24 10:51:02 UTC
With the nice new Qt 5.10 support for QMetaObject::invokeMethod + lambda
is there any reason to use or prefer the "old" way:
QTimer::singleShot(0, receiver, someLambda);
over the new:
QMetaObject::invokeMethod(receiver, someLambda, Qt::QueuedConnection);
Tracing quickly the code, QTimer::singleShot seems to be more heavy.
Philippe
is there any reason to use or prefer the "old" way:
QTimer::singleShot(0, receiver, someLambda);
over the new:
QMetaObject::invokeMethod(receiver, someLambda, Qt::QueuedConnection);
Tracing quickly the code, QTimer::singleShot seems to be more heavy.
Philippe