I have a class in which I have created an instance QScrollView and added a QDialog inside it using addChild().I have Ok and Cancel button in the Dialog.When either Ok or Cancel is clicked the Dialog is closed properly (receiving accept or reject signals). I have a exec loop on the Dialog. When I click the 'X' button on the toolbar of the ScrollView, the ScrollView is closing but the exec() call on the Dialog is not terminated and my application hangs.
here is the portion of the code I am taiking about. self.scrollView = QScrollView() dialog = QDialog (self, ...., self.scrollView.viewport()) self.scrollView.addChild(dialog) self.scrollView.show() if (dialog.exec() == QDialog.Accepted): self.scrollView.hide() self.scrollView.removeChild(dialog) can someone suggest some way to handle this issue.. -- http://mail.python.org/mailman/listinfo/python-list