Create a web screenshot with QT Web Engine

进行中 已发布的 Jan 6, 2016 货到付款
进行中 货到付款

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.

C++编程 软件构架

项目ID: #9248774

关于项目

远程项目 活跃的Jan 7, 2016