WebpagePrinterTool 2.0
Print a web page skip the browser's print preview
|
#include <WebRender.h>
Public 成员函数 | |
WebRender (QObject *parent=nullptr) | |
void | work (PrinterDataPack *pack, CanExceptionCallback ra) |
Public 属性 | |
QWebEngineView | render_view |
Private 槽 | |
void | slotLoadFinishTorint (bool) |
网页加载完毕打印 | |
void | slotJsPrintRequestToPrint () |
Js window.print 调用打印页面 | |
void | slotPrintRequestTimeOut () |
SlotPrintRequestTimeOut | |
Private 成员函数 | |
void | workFinish (bool is_success, const QString errmsg_or_pdfpath) |
void | toRenderPdf () |
Private 属性 | |
QTimer | print_request_time |
QList< QPrinter * > | printers |
QTimer | timeout_listen |
bool | is_working {false} |
std::tuple< PrinterDataPack *, CanExceptionCallback > | current_work |
|
explicit |
|
privateslot |
Js window.print 调用打印页面
|
privateslot |
网页加载完毕打印
|
privateslot |
SlotPrintRequestTimeOut
|
private |
void WebRender::work | ( | PrinterDataPack * | pack, |
CanExceptionCallback | ra ) |
page | |
ra |
|
private |
is_success | |
errmsg_or_pdfpath |
|
private |
|
private |
|
private |
|
private |
QWebEngineView WebRender::render_view |
|
private |