Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

how to render application offscreen and do "screenshot"

$
0
0
i have a digital signage application that does ui elements via qml. it features transitions and graphical effects. it also includes a web server that serves screenshots via a rest interface. what i’d like to have: a single executable for client and service mode if run as application: go fullscreen and render ui … if run as service: don’t show a window/ui. render content (which are ui elements image/webview/video etc – not qpainter-ed graphics) in the background and serve rest-requests idea: client mode is working as it should in service mode create a qimage/qpixmap in the required pseudo resolution (like 1920×1080) render the application to that image as if it were running on a fullhd screen do “screenshots” off that image for rest calls is this feasible? how would i go about it? can i render my top-level qquickview to a hidden screenbuffer? if i simply hide the qquickview, the all drawing is optimized away …

Viewing all articles
Browse latest Browse all 13965

Trending Articles