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. Is there a QtQuick component for taking screenshots?
Forum Updated to NodeBB v4.3 + New Features

Is there a QtQuick component for taking screenshots?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 388 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    RobM
    wrote on last edited by
    #1

    I would like to have a button or icon a user can press which will automatically take a screenshot of whatever they are viewing and save it. Is there a component for this?

    1 Reply Last reply
    0
    • R RobM

      Yes, I mean taking a screenshot of my app. Basically, I want to have a button present in the top right corner of the app at all times. I want the button to have a camera icon. Whenever it is clicked it will automatically take a screenshot of whatever is presently being seen in the app. Does that make sense? Can grabToImage() do that?

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #4

      @RobM said in Is there a QtQuick component for taking screenshots?:

      Can grabToImage() do that?

      As far as I understand - yes. But I don't think I've ever tried it ;-) Just remember to call it on some top-level Item you have so that it captures your whole app and not some tiny part of it.

      (Z(:^

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        If you mean taking a screenshot of your app, then you can use grabToImage() on any (most) items.

        If you mean taking a screenshot of the entire screen or screens - no, there is no such component built into Qt.

        (Z(:^

        1 Reply Last reply
        3
        • R Offline
          R Offline
          RobM
          wrote on last edited by RobM
          #3

          Yes, I mean taking a screenshot of my app. Basically, I want to have a button present in the top right corner of the app at all times. I want the button to have a camera icon. Whenever it is clicked it will automatically take a screenshot of whatever is presently being seen in the app. Does that make sense? Can grabToImage() do that?

          sierdzioS 1 Reply Last reply
          0
          • R RobM

            Yes, I mean taking a screenshot of my app. Basically, I want to have a button present in the top right corner of the app at all times. I want the button to have a camera icon. Whenever it is clicked it will automatically take a screenshot of whatever is presently being seen in the app. Does that make sense? Can grabToImage() do that?

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #4

            @RobM said in Is there a QtQuick component for taking screenshots?:

            Can grabToImage() do that?

            As far as I understand - yes. But I don't think I've ever tried it ;-) Just remember to call it on some top-level Item you have so that it captures your whole app and not some tiny part of it.

            (Z(:^

            1 Reply Last reply
            0

            • Login

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