Qt Signals and the Coroutines TS
summary
Claim: Qt signals become awaitables so sequencing needs no ad hoc state. Implementation uses the Coroutines TS plus metaprogramming to produce either void, a single type, or a tuple matching the signal signature, and an awaitable that turns a Qt signal into an awaitable. The awaitable calls make_slot which disconnects when fired and marshals results, resumes the coroutine, and runs inside the Qt event loop. Demo builds two coroutines (click-to-point and timer color) and it works.
AI-written summary · about








