<div dir="ltr"><div>Yes but this is from python:<br><a href="https://github.com/xerxes2/panucci/blob/master/src/panucci/qml2ui/qml2main.py#L366">https://github.com/xerxes2/panucci/blob/master/src/panucci/qml2ui/qml2main.py#L366</a><br>
<br></div><div>Now when I look at it, that code is from pre Elopocalypse, it may not really be a QTimer but may work for you anyway. Seems to be a class function or something.<br><a href="http://qt-project.org/doc/qt-5.1/qtcore/qtimer.html">http://qt-project.org/doc/qt-5.1/qtcore/qtimer.html</a><br>
<br></div><div>I'm actually about to implement more logic to that method so hopefully you get it to work. If only singleshot work would be a bit lame.<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 14, 2014 at 5:32 AM, Thomas Tanghus <span dir="ltr"><<a href="mailto:thomas@tanghus.net" target="_blank">thomas@tanghus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday 14 January 2014 05:20 Jens Persson wrote:<br>
> I have a QTimer that is used as a timed shutdown for my app and I control<br>
> it with a class method and that works. Just checked with 5 minutes and it<br>
> worked perfectly, as clockwork. :)<br>
<br>
</div>Do you have some code to show? :)<br>
<div class="im HOEnZb"><br>
> Greets Jens<br>
><br>
> On Tue, Jan 14, 2014 at 4:38 AM, Thomas Tanghus <<a href="mailto:thomas@tanghus.net">thomas@tanghus.net</a>> wrote:<br>
> > On Tuesday 14 January 2014 01:48 Jens Persson wrote:<br>
> > > Have you tried timers from QtCore? They seem to work fine for me.<br>
> ><br>
> > At least with timers used in QML via<br>
> > view->rootContext()->setContextProperty()<br>
> > they seem to stop even faster than QML Timers.<br>
> ><br>
> > I guess I have to implement something like libiphb as rainisto mentioned<br>
> > in<br>
> > <a href="http://talk.maemo.org/showpost.php?p=1401321&postcount=4" target="_blank">http://talk.maemo.org/showpost.php?p=1401321&postcount=4</a><br>
> ><br>
> > Just seems like overkill for such a simple app.<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
Med venlig hilsen / Best Regards<br>
<br>
Thomas Tanghus<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</div></div></blockquote></div><br></div>