code: def _resizeCurrentColumnToContents(self, new_index, old_index):
          
          if new_index.column() not in self._autosized_cols:
              # Ensure the requested column is fully into view after resizing
              self._resizeVisibleColumnsToContents()
              self.dataTable.scrollTo(new_index)
docs: Resize the current column to its contents.