I create a "new QWidget" in a separate thread. When that thread ends, my widget gets deleted. How can I fix this problem?