Create a web screenshot with QT Web Engine
£10-100 GBP
货到付款
Its a very small project. I just want a QT (5.6 beta) console application that can take a URL and produce a image file.
Some example code is below. However I can't get it to work, it throws the error "cannot be used without a context shared with the toplevel error"
Obviously it will need a delay before rendering.
QWebEngineView *w = new QWebEngineView();
QImage image = new QImage();
QPainter painter(&image);
w->page()->view()->render(&painter);
[login to view URL]();
[login to view URL]("[login to view URL]")
Note that this project must use the QWebEngine classes and NOT the QWebKit classes.
项目ID: #9248774