Yes but this is from python:
https://github.com/xerxes2/panucci/blob/master/src/panucci/qml2ui/qml2main.py#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

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.


On Tue, Jan 14, 2014 at 5:32 AM, Thomas Tanghus <tho...@tanghus.net> wrote:

> On Tuesday 14 January 2014 05:20 Jens Persson wrote:
> > I have a QTimer that is used as a timed shutdown for my app and I control
> > it with a class method and that works. Just checked with 5 minutes and it
> > worked perfectly, as clockwork. :)
>
> Do you have some code to show? :)
>
> > Greets Jens
> >
> > On Tue, Jan 14, 2014 at 4:38 AM, Thomas Tanghus <tho...@tanghus.net>
> wrote:
> > > On Tuesday 14 January 2014 01:48 Jens Persson wrote:
> > > > Have you tried timers from QtCore? They seem to work fine for me.
> > >
> > > At least with timers used in QML via
> > > view->rootContext()->setContextProperty()
> > > they seem to stop even faster than QML Timers.
> > >
> > > I guess I have to implement something like libiphb as rainisto
> mentioned
> > > in
> > > http://talk.maemo.org/showpost.php?p=1401321&postcount=4
> > >
> > > Just seems like overkill for such a simple app.
>
> --
> Med venlig hilsen / Best Regards
>
> Thomas Tanghus
> _______________________________________________
> SailfishOS.org Devel mailing list
>
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to