# All Animation in widget not work when use vtk with Qml

**URL:** https://discourse.vtk.org/t/all-animation-in-widget-not-work-when-use-vtk-with-qml/7630
**Category:** Development
**Created:** [January 13, 2022, 12:38am UTC](https://discourse.vtk.org/t/all-animation-in-widget-not-work-when-use-vtk-with-qml/7630 "2022-01-13T00:38:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edwardAllen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/edwardallen/32/4576_2.png) [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)
#### Post date: [January 13, 2022, 12:38am UTC](https://discourse.vtk.org/t/all-animation-in-widget-not-work-when-use-vtk-with-qml/7630/1 "2022-01-13T00:38:15Z")

</div>

I think all animation not work when this widget is in qml .  
Because , all mouse event are handled in quickItem::sync() function ,and animation is running in mouse event’s callback , after deal with mouse handle , qquickItem::Paint() will run and the frame will flash , so ,no animation ,only the last frame will show .

So, any one have any idea with this ? Thanks !
