The migration from
I think the correct way to use
QWebEngineView::render method because
QWebEngineView is a
QWidget. It accepts paint device as a first argument and you may pass
QPrinter there for printing.
Update: If you can use the latest version of Qt, in Qt 5.8 a new function for printing page was added:
void QWebEnginePage::print(QPrinter *printer, FunctorOrLambda resultCallback);
Actually it first prints to temp PDF with
Here is the link to Qt docs.
You can read about this in our blog also.