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