Sorry for the confusing title, what I am trying to do is use Qt to count the amount of elements with a certain tag name. When I do this, and try to convert the count to a string I get letters instead of numbers. \[code\]void xml::list(QDomElement root, QString tagname, QString att){QDomNodeList items = root.elementsByTagName(tagname); // node list of elements debug.setText(QString(items.count())); // converting the amount of elements to integerdebug.show(); // showing the popup box}\[/code\]there is only one element that it should be counting, and I should get the number 1 in the message box, instead it gives me the letter "r". Am I converting this incorrectly?