Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Screenshot Flickable which has bigger content than Screensize



  • 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


  • Moderators

    You call grabToImage() on your Flickable object? Try doing it on flickable.contentItem instead. If it does not work, then you probably have to programmatically flick the content, grab several images and then stitch them together.



  • 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 btw

    I´ll guess i try to take the stitch approch...