Screenshot Flickable which has bigger content than Screensize
-
wrote on 8 Jul 2020, 12:06 last edited by
Hey guys,
i want to take a screenshot of a flickable, but not all content is visible due to content being bigger than the screensize/itemsize.grabToImage(function(result){result.saveToFile("someimg.png")})
is working so far that is catches all inside the itemsize. That means not visible content will not be included in the screenshot.Is there a way to take a "screenshot" even of the not visible content of the flickable?
Thanks in advance
-
You call
grabToImage()
on your Flickable object? Try doing it onflickable.contentItem
instead. If it does not work, then you probably have to programmatically flick the content, grab several images and then stitch them together. -
wrote on 9 Jul 2020, 06:07 last edited by
Yea, i did try to call it on the flickable object.
Tryed it on the contentItem now, but
<unknown File>: QML QuickItem: grabToImange: item has no QML engine
Im on Qt 5.10 btwI´ll guess i try to take the stitch approch...
2/3