Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.7.1
-
None
-
Ubuntu 10.17; gcc 4.4.1; qmake 2.01a; qt 4.7.1 compiled without QWebKit
Description
When a valid xml document is parsed by QXmlStreamReader, the readElementText() function will return a QString that can be interpreted by qDebug() but can be set to a QString variable. In the attached code, I created variables named QString a, QString b, and QString c. I set 'a' = "String A", and I set 'b' = 'a'. As expected, "qDebug() << a" prints "String A". I then set 'c' to "String C." Finally, I parse a valid xml document for an xml element <bug> and display the results with qDebug(). Afterwich, I attempt to set 'c' to xml.readElementText() and display the empty result with qDebug().