Did he change the code snippets? Where do you see QString pointers? Or something '11'? It is very annoying to do so and does not make it easier to help. But your problem is that you try to call a non-const method from a const method. Of course this does not work.