How can I edit resource file?
Hi
I have a XML file in some folder of my project.
I can to read the file but I am not able to write.
I have this error:
QIODevice::write (QFile, ":\files\zoom.XML"): device not open
Code:
void MyXML::save(){
QFile file(":/files/zoom.XML");
return;
QXmlStreamWriter xmlWriter(&file);
xmlWriter.setAutoFormatting(true);
xmlWriter.writeStartDocument();
xmlWriter.writeStartElement("record");
xmlWriter.writeAttribute("prop1",newProp1);
...
...
xmlWriter.writeAttribute("propn",newPropn);
xmlWriter.writeEndElement();
}
Re: How can I edit resource file?
Resource file is read only because this is a part of executable.