[Interest] Screenshot QML Applications

Martin Leutelt martin.leutelt at basyskom.com
Thu Dec 12 08:51:50 CET 2019


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> 
 To:   "interest at qt-project.org" <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> On Behalf Of interest-request at qt-project.org 
Sent: Friday, December 6, 2019 3:00 AM 
To: interest at qt-project.org 
Subject: Interest Digest, Vol 99, Issue 7 
 
Send Interest mailing list submissions to 
     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 
 
You can reach the person managing the list at 
     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
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191212/29bf5062/attachment.html>


More information about the Interest mailing list