<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
blockquote
        {margin-bottom:0px;
        margin-left:2em;
        margin-top:0px}
ol
        {margin-bottom:0px;
        margin-top:0px}
ul
        {margin-bottom:0px;
        margin-top:0px}
p
        {margin-bottom:0px;
        margin-top:0px}
body
        {font-size:10.5pt;
        font-family:微软雅黑;
        color:#000000;
        line-height:1.5}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="margin:10px">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
If you want to capture something on your application side, you can grab whole window through QQuickItem. This part is blocking but you can do capture manipulations in async manner quite simple by using QFutureWatcher.<br>
<br>
Like:<br>
<br>
void ScreenShow::screenShot(QQuickItem *item)<br>
{<br>
    if (item && item->window()) {<br>
        // Blocks for a short moment<br>
        QImage image = item->window()->grabWindow();<br>
        // Could be done in later<br>
        image.save("/home/nemo/Pictures/iface.png")<br>
    }<br>
}<br>
<br>
-Raine<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF575126"><font color="#000000" face="Tahoma" size="2"><b>Lähettäjä:</b> devel-bounces@lists.sailfishos.org [devel-bounces@lists.sailfishos.org] käyttäjän itviewer [itviewer@jolladev.net] puolesta<br>
<b>Lähetetty:</b> 14. helmikuuta 2014 9:19<br>
<b>Vastaanottaja:</b> devel<br>
<b>Aihe:</b> [SailfishDevel] Please help me, how to get the screen capture without block UI<br>
</font><br>
</div>
<div></div>
<div>
<div>Dear ,</div>
<blockquote dir="ltr" style="margin-right:0px">
<div>attachment is all my code,and I have been tried many times</div>
<div>but it still block the UI(about 3<span id="result_box" class="short_text" lang="en"><span class="hps"> seconds</span></span>)  w<span id="result_box" class="short_text" lang="en"><span class="hps">hen the program starts (
</span></span>or after click  the label“Hello Sailors”)</div>
<div>While, it seems that there is no such blocking when using the harbor store app "screenshot".</div>
<div> </div>
<div><span id="result_box" class="short_text" lang="en"><span class="hps">Very grateful,thanks everybody。</span></span></div>
</blockquote>
<hr style="height:1px; width:210px" align="left" color="#b5c4df" size="1">
<div><span>
<div style="font-size:10pt; font-family:verdana; margin:10px">
<div>ma xinjun</div>
</div>
</span></div>
</div>
</div>
</div>
</body>
</html>