def METHOD_NAME(self, event):
    result = qt.QDialog.METHOD_NAME(self, event)
    # TODO: It would be nice to resize in a smooth way when we resize the dialog
    # It was in Stretch mode until the redisplay to have a good first layout
    header = self._deviceView.horizontalHeader()
    header.setSectionResizeMode(0, qt.QHeaderView.Interactive)
    return result