I'm looking for a way to vary (speed up) the clock for unit tests, so automated tests don't need to wait too long for time- or timer-dependent events to happen. Other frameworks sometimes provide e.g. "mock clocks", but I couldn't find anything alike for the QTest framework. Only speeding up the "event flow" for QTimer/QSingleShotTimer instead of the entire application would also work for me for the moment.
Just for QTimer it seems that one could simulate QTimerEvents, sending them to specific QTimer objects. But catching the initial call to startTimer() seems to be more complex. Also QTimer creates QSingleShotTimer objects internally for single-shot events, and one would need to get a handle on these, as well. Thus, it doesn't really look viable to me.
I'd appreciate any hints or help in these regards. Maybe I'm using all the wrong search terms, but couldn't find anything related to "manipulating timing" in the Qt docs or forums (or any web search results). Thanks a lot in advance!