[Interest] Screenshot QML Applications

Jason H jhihn at gmx.com
Fri Dec 13 05:17:18 CET 2019


FWIW, i use this and it works.

> Sent: Friday, December 13, 2019 at 2:53 AM
> From: "Matt Wright" <MattW at digital-control.com>
> To: "Martin Leutelt" <martin.leutelt at basyskom.com>, "interest at qt-project.org" <interest at qt-project.org>
> Subject: Re: [Interest] Screenshot QML Applications
>
> Hi Martin,
>
> Thanks for the suggestion, I will give it a go.
>
> Matt
>
> From: Martin Leutelt <martin.leutelt at basyskom.com>
> Sent: Wednesday, December 11, 2019 11:52 PM
> To: interest at qt-project.org
> Subject: Re: [Interest] Screenshot QML Applications
>
> Hi,
>
> I guess what you're looking for is https://doc.qt.io/qt-5/qml-qtquick-item.html#grabToImage-method. Calling this on an appropriate Item in your QML object hierarchy should do the job.
>
> Best regards,
> Martin
> From: Matt Wright <MattW at digital-control.com<mailto:MattW at digital-control.com>>
> To: "interest at qt-project.org<mailto:interest at qt-project.org>" <interest at qt-project.org<mailto:interest at qt-project.org>>
> Sent: 12/12/2019 3:18 AM
> Subject: [Interest] Screenshot QML Applications
> Hi,
>
> I'm running a QML app on an embedded Linux device running Debian.  I have seen some hits online about how to screenshot a Widgets app, but nothing obvious on how to do the same with a QML app.  My goal here is to have a key combination so that we can easily take a screenshot and store the file on the device, extracting the screenshot later.
>
> Any info any of you would be willing to share would be helpful.
>
> Thanks,
> Matt
>
> -----Original Message-----
> From: Interest <interest-bounces at qt-project.org<mailto:interest-bounces at qt-project.org>> On Behalf Of interest-request at qt-project.org<mailto:interest-request at qt-project.org>
> Sent: Friday, December 6, 2019 3:00 AM
> To: interest at qt-project.org<mailto:interest at qt-project.org>
> Subject: Interest Digest, Vol 99, Issue 7
>
> Send Interest mailing list submissions to
>     interest at qt-project.org<mailto:interest at qt-project.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>     https://lists.qt-project.org/listinfo/interest
> or, via email, send a message with subject or body 'help' to
>     interest-request at qt-project.org<mailto:interest-request at qt-project.org>
>
> You can reach the person managing the list at
>     interest-owner at qt-project.org<mailto:interest-owner at qt-project.org>
>
> When replying, please edit your Subject line so it is more specific than "Re: Contents of Interest digest..."
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org<mailto:Interest at qt-project.org>
> https://lists.qt-project.org/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


More information about the Interest mailing list