Important: Please read the Qt Code of Conduct -

window.requestAnimationFrame equivalent?

  • Hi everybody,
    I am trying to implement this animation into my application.
    I need window.requestAnimationFrame equivalent. I found that requestAnimationFrame in Canvas item.
    It behaves different because it creates "RangeError: Maximum call stack size exceeded."
    I think it immediately creates a paint request.
    I also tried markDirty and paintRequest methods on paint event but they do not create continues requests.

    How can I do it without create a timer?

  • I think I solved the problem by myself.


    Full example is here.

Log in to reply