Report question

Question: How to create a correct exit button in qt