我是Qt的新手。我只是想知道是否可以将整个qwebview
发送到打印机。我不是在问源代码,而是
1)有可能吗?
2)我们是否有任何参考链接?
答案 0 :(得分:0)
1)是的,这是可能的
2)如QWebView文档中所述
A QWebView can be printed onto a QPrinter using the print() function.
This function is marked as a slot and can be conveniently connected to
QPrintPreviewDialog's paintRequested() signal.
答案 1 :(得分:0)
1)是可能的
2)http://www.qtcentre.org/threads/25880-QWebView-prints-PDF-file-OK-with-QPrintDialog-only
您也可以从webview获取HTML并采用其他一些打印技术。