Thank you.

The code I posted is only a few lines from a more complex code, I know that those lines alone don't compile And you are right and the content of the list is correct, I was checking the content of the variables with the Visual Studio tools and they show me wrong values, but when using QDebug() as you propose it works fine. Do you know why Visual Studio doesn't work for Qt variables or classes?

Thank you very much.