<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
using Qt DBus classes and not use system() call?<br>
<br>
<div class="moz-cite-prefix">On 12.02.2014 12:08, itviewer wrote:<br>
</div>
<blockquote cite="mid:2014021214082559667125@jolladev.net"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<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>
<meta name="GENERATOR" content="MSHTML 11.00.9600.16384">
<div>
<div>Dear all,</div>
<div> </div>
<div style="TEXT-INDENT: 2em">I need the screen capture function
in my application . There are two applications (<span
style="FONT-WEIGHT: bold">screenshot </span>and opensource
<span style="FONT-WEIGHT: bold">sailshotme</span>) in the
jolla store. </div>
<div style="TEXT-INDENT: 2em"> </div>
<div style="TEXT-INDENT: 2em">From the "sailshotme", I know
that can call the saveScreenshot method of
org.nemomobile.lipstick through dbus, such as the command:</div>
<div style="TEXT-INDENT: 2em"> </div>
<div style="TEXT-INDENT: 2em">"dbus-send --session
--type=method_call --print-reply
--dest=org.nemomobile.lipstick
/org/nemomobile/lipstick/screenshot
org.nemomobile.lipstick.saveScreenshot
string:/home/nemo/Pictures/123.png "</div>
<div> </div>
<div>but, using the "<span style="FONT-WEIGHT: bold">sailshotme</span>"
or the above mentioned command will lead to the UI blocking of
sailfish system, the screen will not response within </div>
<div>a few seconds, however, it seems that there is no such
blocking when using the "<span style="FONT-WEIGHT: bold">screenshot</span>".</div>
<div>so I want to know the <span id="result_box"
class="short_text" lang="en"><span class="hps">mechanism </span></span>of
the "screenshot"?</div>
<div> </div>
<div>Best&Regards </div>
</div>
<div> </div>
<hr style="HEIGHT: 1px; WIDTH: 210px" size="1" align="left"
color="#b5c4df">
ma xinjun
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>