PDA

View Full Version : dialog blocks other window



franknapoli
22nd July 2009, 18:52
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".:crying:
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

Lykurg
22nd July 2009, 19:15
I can't post the code because is very very long.

But without we can't help you. So please post only the code where you initialize the dialog, how do you show it and the slot which is connected to the "close without save" button.