Qt4: Print a SQL table to PDF
Qt 开发者_运维知识库has built-in PDF export support (QPrinter::PdfFormat
).
What's the best way to print an SQL table to a PDF file? (a table from a database loaded with QSqlDatabase
and linked to a QTableView
)...
You use QWidget::render. See the documentation about Printing Widgets.
精彩评论