This is what I have tried and it stops my entire application. When I try using .show() instead of .exec_(), the Dialog window closes immediately after
.show()
.exec_()