It's not enough to just create an object, you have to assign it to some action through class functions (what are they? I don't know, read class source code or manual as there is nothing online). And your code already has a memory leak as necrodome pointed out.