<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resizeEvent(self, event):

 """
 Reimplement Qt method to be able to save the widget's size from the
 main application
 """

        QDialog.resizeEvent(self, event)
        self.size_change.emit(self.size())