I'm italian, I try to explain the problem using the right words. I've an application in Qt made with QtCreator where a MainWindow creates a dialog. This dialog has two button. the first is linked to a slot that save some options, the second button close the dialog without saving. The problem is that if I press the first button which save the option the dialog is closed and the mainwindow is active, else if I press the button that close the dialog without save, the dialog is closed but the mainwindow is inactive, and I can't close it normally but only with "forced exit".
I can't post the code because is very very long. I've set the dialog mode in the right mode.
I hope that someone can help me.
Bye and thanks
Bookmarks