Is there a QtQuick component for taking screenshots?
-
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?@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.
-
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.
-
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? -
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?@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.