<div dir="ltr">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:<br>
<br>Audio { source: "file.mp3" }<br><div><div class="gmail_extra"><br></div><div class="gmail_extra">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. :)<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Greets Jens<br><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 14, 2014 at 12:32 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That's an interesting approach :) I just might try that if it doesn't pass QA.<br>
<div class=""><div class="h5"><br>
On Tuesday 14 January 2014 07:28 Jens Persson wrote:<br>
> Ok, did some fast checking now. Yes you were right, QTimer doesn't work,<br>
> singleShot or not. :( But ... it works for my app because it plays audio<br>
> and it works even if the gstreamer pipeline is in paused state. My app uses<br>
> gstreamer directly but you can try some other (easier) way, I think there's<br>
> quite a few of them. Just load an audio file and set it to paused state and<br>
> timers will hopefully work just fine. Hopefully you will make it to the<br>
> harbour this way. :)<br>
><br></div></div></blockquote></div></div></div></div>