code: def resizeEvent(self, event):
          
          super(XLabel, self).resizeEvent(event)
          
          if self._lineEdit:
              self._lineEdit.resize(self.size())
docs: Resize the label and the line edit for this label.
          
          :param      event | <QResizeEvent>