Hi,
When I write the XML file, the elements that have attributes write them into a random order?
qDoc.appendChild(qProject);
qProjecte.
setAttribute(QString("Version"),
QString::number(m_fVersion
));
qProjecte.
setAttribute(QString("Name"),m_qName
);
QDomElement qProject = qDoc.createElement("Project");
qDoc.appendChild(qProject);
qProjecte.setAttribute(QString("Version"),QString::number(m_fVersion));
qProjecte.setAttribute(QString("Name"),m_qName);
qProjecte.setAttribute(QString("LogEnabled"),m_bLogEnabled ? QString("true") : QString("false"));
To copy to clipboard, switch view to plain text mode
The XML file stores it like:
<Project LogEnabled="false" Name="Basler 1" Version="2.5" >
<Project LogEnabled="false" Name="Basler 1" Version="2.5" >
To copy to clipboard, switch view to plain text mode
Is there anyway to force the attributes to be stored in the order that I add them?
Thanks,
Bookmarks