mentalmushroom
10th June 2011, 11:42
I noticed that QXmlQuery always adds an extra line break to the returned value (when evaluating to QString)
QXmlQuery q;
q.setQuery("'aaa'");
if (q.isValid() && q.evaluateTo(&s))
{
s.append("b");
qDebug()<<s<<endl;
}
The code above produces strange output:
"aaa
b"
instead of expected "aaab".
Is that a bug or am I doing something wrong?
QXmlQuery q;
q.setQuery("'aaa'");
if (q.isValid() && q.evaluateTo(&s))
{
s.append("b");
qDebug()<<s<<endl;
}
The code above produces strange output:
"aaa
b"
instead of expected "aaab".
Is that a bug or am I doing something wrong?