[SailfishDevel] QML Timer stops running

Jens Persson xerxes2 at gmail.com
Thu Jan 16 22:24:27 UTC 2014

So, I switched my shutdown logic to qml timers and they work just fine when
the gstreamer pipeline is in paused state. And I got a bit curious so I
also tested with the qml multimedia plugin and it worked just fine too. So
basically all you need is one line (and one import) to make timers work in

Audio { source: "file.mp3" }

That's it. I don't know which way is the best but I know which is the
laziest. Just throw in a few cool sounds to complement the obnoxious
beeper. :)

Greets Jens

On Tue, Jan 14, 2014 at 12:32 PM, Thomas Tanghus <thomas at tanghus.net> wrote:

> That's an interesting approach :) I just might try that if it doesn't pass
> QA.
> On Tuesday 14 January 2014 07:28 Jens Persson wrote:
> > 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. :)
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140116/d1478699/attachment.html>

More information about the Devel mailing list