There is only one view. The highest and lowest value in a column is highlighted in the view. I want the user to be able to remove a row from the view (without removing it from the source) The problem isn't in hiding the row, it is in highlighting the correct row AFTER a row is hidden.
I forgot to show the code for hiding the row;
Qt Code:
  1. void DlgPrintPreview::on_btnDeleteRow_clicked()
  2. {
  3. QModelIndex index = ui->printView->currentIndex();
  4. if (!index.isValid())
  5. return;
  6. ui->printView->setRowHidden(index.row(),true);
  7. highlightCells();
  8.  
  9. }
To copy to clipboard, switch view to plain text mode