code: def resizeEvent(self, event):
          
          super(XOverlayWidget, self).resizeEvent(event)
          self.adjustSize()
docs: Handles a resize event for this overlay, centering the central widget if
          one is found.
  
          :param      event | <QtCore.QEvent>