How to print QTableWidget on printer?
I have big size QTableWidget. I want to print it including headers, but QTableWidget doesn't have print() method. How can I impl开发者_运维技巧ement it?
The information you want is provided in the Printing with Qt documentation page. In particular, pay attention to the Painting onto a Page section.
You can create a table with HTML and by using QTextDocument's setHtml() method you can set the tables to document then you can use the print() function of document for a continuous print with page numbers.
精彩评论