Use QTimer to invoke loop(). But it's not still working... :-(