I have two rather independent threads running. One generates data and one contains some display logic.
I transmit data via some
QMetaObject::invokeMethod(processor, "newData");
on the generator side. (processor is some QObject that is part of a Widget).
My data generation thread may be faster than the other one and everything gets pretty slow.
Displaying old data is meaningless in my use case so i do not want that the invokeMethod
calls queue up.
Further invokes should be ignored or - at best - only the latest invoke should be executed.
How can I achieve this?