Registered Member
|
Next up on the list of problems: setTimeout not known.
I found a QTimer class but whatever I try, I keep getting errors. I read somewhere that a QObject should have a setTimeout function - but this also fails. Does anyone have an example of this? I actually need a timer that fires only once and a timer which fires roughly each second. I tried a busy loop for the fire once timer but the result is exactly what I expected and ofcourse not what I want... Anyone?
Last edited by cyberwizzard on Thu Jan 29, 2009 2:05 pm, edited 1 time in total.
|
KDE Developer
|
http://amarok.kde.org/qtscriptbindings/qtimer.html has the barebone JavaScript docs. You can see that it doesn't derive from QObject and doesn't have a 'setTimeout' function. Check with these docs when things aren't matching up.
Amarok Developer
|
Registered Member
|
I figured it out (yay) - to leave an example for others:
|
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]