def METHOD_NAME(self, event):
    """
    Reimplement Qt method to be able to save the widget's size from the
    main application
    """
    QDialog.METHOD_NAME(self, event)
    self.size_change.emit(self.size())