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 qml:
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 <tho...@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. :) > > >
_______________________________________________ SailfishOS.org Devel mailing list