This is not a compilable example reproducing the problem. It's two methods of some nondefined class. I was asking for something I can compile (qmake && make) and run to see the problem myself.