[Qt-interest] QDomElement::setAttribute problem
matteo
matteo.ceruti at task84.it
Thu May 7 13:42:54 CEST 2009
I have the following code:
QDomElement PositionPartElement =
XmlDocument.createElement("positionElement");
float d0;
d0 = 2001;
PositionPartElement.setAttribute("d0",d0);
....
....
....
FatherElement.appendChild(PositionPartElement);
The result must be:
<partElement>
<positionElement x="314.67" y="1752.95" z="439.655" d0="2001" />
...
...
If I use the QtXmld4.dll (debug) it runs.
If I use QtXml4.dll (release) it prints:
<partElement>
<positionElement x="314.67" y="1752.95" z="439.655" d0="2000.:" />
...
...
It's a bug?
Thanks
Teo
More information about the Qt-interest-old
mailing list