Quote Originally Posted by akiross View Post
Actually, Qt is class based, so events are outside the main loop.
In Qt input events are fed by the system (X11, Window$, ...) to the event loop of the GUI thread (== main loop) which dispatch them to proper receivers.