Hello... does anybody have a hint about how to scale all the contents of a QTableView? (Cells and headers)...

In I tried the following, but this works only on the cells... headers are not scaled and also, viewport is not working properly...

Qt Code:
  1. void MyDelegate::paint (QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const
  2. {
  3. QTransform trans;
  4. trans.scale(1.25, 1.25);
  5. painter->setTransform(trans);
  6.  
  7. QStyledItemDelegate::paint(painter, option, index);
  8. }
To copy to clipboard, switch view to plain text mode 

Any example or hint would be really appreciated.