Well, it is perfectly saved, but not where you expect it! It is saved in your QString xmlAddress. If you want to save it to a file, specified by xmlAddress, you have to use QFile first!
And did you noticed, that you have used the wrong tags to indicate that your text is c++ code? Please use the [code] tags next time, which makes your code much more readable.
Bookmarks