title: Using QTimers in library code - check for existing event loop?
body: <p>I'm preparing to add an idle timer to a shared KDE library (kwallet). While I presume it will mostly be called from a thread that already has an event loop, I cannot be sure of that. Is there a a way to check for this?</p>
  
  <p>Alternatively, being rather new to Qt development, what would be the leanest way to spawn that timer in its own thread so that it will definitely have an event loop?</p>