[SailfishDevel] QML Timer stops running

Jens Persson xerxes2 at gmail.com
Tue Jan 14 06:28:02 UTC 2014

Ok, did some fast checking now. Yes you were right, QTimer doesn't work,
singleShot or not. :( But ... it works for my app because it plays audio
and it works even if the gstreamer pipeline is in paused state. My app uses
gstreamer directly but you can try some other (easier) way, I think there's
quite a few of them. Just load an audio file and set it to paused state and
timers will hopefully work just fine. Hopefully you will make it to the
harbour this way. :)

On Tue, Jan 14, 2014 at 6:10 AM, Thomas Tanghus <thomas at tanghus.net> wrote:

> On Tuesday 14 January 2014 05:51 Jens Persson wrote:
> > Yes but this is from python:
> >
> https://github.com/xerxes2/panucci/blob/master/src/panucci/qml2ui/qml2main.p
> > y#L366
> >
> > 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.
> > http://qt-project.org/doc/qt-5.1/qtcore/qtimer.html
> Yes QTimer.singleShot() might work, but apparently not interval timers
> > 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.
> Indeed. I managed to get it working using libiphb, but I doubt the harbour
> master will allow an app linking against it even though it's installed -
> and
> probably used by the clock app.
> --
> Med venlig hilsen / Best Regards
> Thomas Tanghus
> _______________________________________________
> SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140114/8b2758c1/attachment.html>

More information about the Devel mailing list