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:
sample c# project: