Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Screenshot Flickable which has bigger content than Screensize
QtWS25 Last Chance

Screenshot Flickable which has bigger content than Screensize

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
flickablescreenshotgrabtoimageqml
3 Posts 2 Posters 438 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Konstantin Schraubek
    wrote on 8 Jul 2020, 12:06 last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 8 Jul 2020, 12:35 last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      1
      • K Offline
        K Offline
        Konstantin Schraubek
        wrote on 9 Jul 2020, 06:07 last edited by
        #3

        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...

        1 Reply Last reply
        0

        1/3

        8 Jul 2020, 12:06

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved