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 <ma...@digital-control.com> 
 To:   "interest@qt-project.org" <interest@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-boun...@qt-project.org> On Behalf Of 
interest-requ...@qt-project.org 
Sent: Friday, December 6, 2019 3:00 AM 
To: interest@qt-project.org 
Subject: Interest Digest, Vol 99, Issue 7 
 
Send Interest mailing list submissions to 
     interest@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-requ...@qt-project.org 
 
You can reach the person managing the list at 
     interest-ow...@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@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to