~/talk

C++ coroutines and Qt

Talkat Meeting C++ 2021 · 2021-11-10..11-12· [rust]
links:none on file
slides:none on file

QCoro implements C++20 coroutines for Qt types and shows concrete examples: QCoro library wraps QNetworkReply, QProcess, QIODevice, QTcpServer and QDBus so code reads synchronously while actually suspending the event loop, avoiding nested loops and callbacks. It explains the promise/await_transform plumbing, shows co_await on replies and co_await QNetworkReply resumes on finished signals, and reports a working MIT‑licensed library that builds on GCC/Clang/MSVC across Linux/macOS/Windows and is extensible for custom Qt types.

AI-written summary · about

  1. 0:00Introduction
  2. 3:26Nesting Event Loops
  3. 6:39Asynchronous Operations
  4. 7:54Member Functions
  5. 12:25Getusername
  6. 14:40Pain Points
  7. 15:35Solution
  8. 15:45Example
  9. 18:28Call chain
  10. 28:04QueueCorro Types
  11. 30:53Code Example
  12. 36:13CoAwaiting
  13. 37:28Future plans
  14. 42:33Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.