I want to parse a very simple QString, which contains text in XML format

<?xml version="1.0" encoding="ISO-8859-1"?>
<data>
<method>loginRequest</method>
<userName>user</userName>
<userPassword>password</userPassword>
</data>

So far I am able to verify that this XML is well formed.

Now, I would like to get the information inside each tag. For example: I would like to get "user", which is inside the <userName> tag.

From the documentation I have understood that the class and funtion should return the value of whatever is inside the tag:
void * QXmlReader:roperty ( const QString & name, bool * ok = 0 ) const

That value is "Void *", how do I convert this to QString ?