first test qt gui, working but not threadsafe, qthread is weird