Could you try running this application?
#include <qdom.h>
#include <qstring.h>
int main(){
doc.appendChild(root);
elem.setAttribute("arg", "value1;value2;value3");
root.appendChild(elem);
qDebug("%s", doc.toString().ascii());
return 0;
}
#include <qdom.h>
#include <qstring.h>
int main(){
QDomDocument doc;
QDomElement root = doc.createElement("root");
doc.appendChild(root);
QDomElement elem = doc.createElement("test");
elem.setAttribute("arg", "value1;value2;value3");
root.appendChild(elem);
qDebug("%s", doc.toString().ascii());
return 0;
}
To copy to clipboard, switch view to plain text mode
It works for me without problems, so if semicolons are causing you trouble, the problem is within your code and not Qt.
Bookmarks