code: def _update_header_size(self):
          
          column_count = self.table_header.model().columnCount()
          for index in range(0, column_count):
              if index < column_count:
                  column_width = self.dataTable.columnWidth(index)
                  self.table_header.setColumnWidth(index, column_width)
              else:
                  break
docs: Update the column width of the header.