title: QTableView Zoom In/Out
body: <p>I'm trying to create a QTableView that can be zoomed in and out like in Excel.<br>
  A similar question was asked here: <a href="https://stackoverflow.com/questions/6650219/zooming-function-on-a-qwidget">Zooming function on a QWidget</a></p>
  
  <p>However, I'm subclassing the QTableView in PyQt and not C so reimplementing the entire PaintEvent method is a bit evolved.  The source code for that is a bit complex: <a href="https://qt.gitorious.org/qt/tiittane-qt/source/bdd4a9149789f60974603e1f7621d51378f0a108:src/gui/itemviews/qtableview.cpp#L1282" rel="nofollow noreferrer">https://qt.gitorious.org/qt/tiittane-qt/source/bdd4a9149789f60974603e1f7621d51378f0a108:src/gui/itemviews/qtableview.cpp#L1282</a></p>
  
  <p>I'm looking to see if there are any other viable options to have a zoom able TableView.  My first attempt was by setting the font size then realized each column and row widths would have to scale as well which can become slow.  Then realized changing the font would change the print.  It didn't seems like an elegant solution.  Changing the scale of the painter before painting seems like the more elegant solution but would have to re-implement and translate quite a bit of code to python to do so. I'm wondering if there are any other hooks to get this done.</p>
  
  <p>Thanks</p>