prototype with qt widget, main loop on different thread