[PyQt] print a tableview

dboddie at trolltech.com dboddie at trolltech.com
Mon Jan 12 17:16:21 GMT 2009


On Mon Jan 12 16:53:02 GMT 2009, lucaberto wrote:

> Can you tell me the best way for print a tableview
> the only way that i know is to draw all with qpainter and than print in pdf 
> but maybe there is a best way?

That may work quite well. An alternative is to create a text document using
the data displayed in the view and print that instead. I suggested that to
someone else in this message:

http://www.riverbankcomputing.com/pipermail/pyqt/2008-October/020811.html

I don't know if they got the results they wanted.

There's also a thread on qt-interest where people discussed various ways
to print a table:

http://lists.trolltech.com/qt-interest/2008-03/thread00599-0.html

David


More information about the PyQt mailing list