'Extend QLabel::resizeEvent to update the elided text afterwards.'

def resizeEvent(self, e):

    super().resizeEvent(e)
    size = e.size()
    qtutils.ensure_valid(size)
    self._update_elided_text(size.width())
