Yes, because Lua runs on a non-Qt thread. Now my question is: how can I fix it so that I have an event loop running?