How to take a full page screenshot?
The following code can be used in a QWebEngineView based class to take a screenshot into an image:
QImage image(size, QImage::Format_ARGB32);
However, only part of the web page(that is shown on the view widget) is captured. In QtWebkit, I can use setViewPort to capture the whole page but QWebEngineView does not have this function. How can I capture the entire web page now?