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

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to