hi guys im here with a new basic question i couldnt find in the forum...

after i sort my model with a QSortFilterProxyModel it seems that row number is attached to every row...as i want to display those numbers..hiding the horizontal index is not an option..so far what i`ve read is that i should use the horizontal data of the filter not the model...the thing is that i dont know how to do it ....

here is what i ve done:

Qt Code:
  1. sort_filter->setSourceModel(model);
  2. this->ui->table_busqueda->setModel (sort_filter);
  3. sort_filter->sort (0);
  4. this->ui->table_busqueda->setHorizontalHeader (//here should go the header of the filter ...);
To copy to clipboard, switch view to plain text mode 

thanks everyone