Animation does not work on c++ project

I have two project which are written in c# and c++ with qt. In c# project I use OCCTProxy and animation works like a charm. But when I use same code for a sample project I mean c++ project (add link for that), does not work at all. I definitely don't understand what is the difference between them.

I'm going to add my animation class. I will be appreciated for any comments, thanks.

sample c++ project: https://github.com/gkv311/occt-samples-qopenglwidget
sample c# project: https://github.com/Open-Cascade-SAS/OCCT-samples-csharp