File write not getting updated in Qt 4.5.3
Posted
by user249490
on Stack Overflow
See other posts from Stack Overflow
or by user249490
Published on 2010-05-21T05:07:28Z
Indexed on
2010/05/21
5:10 UTC
Read the original article
Hit count: 196
Hi, I have an XML file. My application requires manipulation into that XML file. I will be writing the values into the XML value. I also have interface to display the read contents of the file. The user might add values into that XML (through an interface). Without closing the application he may decide to display the File contents also. Now the problem is, after i write the XML contents into the file, when i view the file through the interface , the values are not getting updated. After i close the application and open it the updated values are available.I am using the following code to achieve this.
For writing QXmlStreamWriter
and for reading QDomDocument,
QDomNodeList
.
After i complete the writing, I flush and close the file too.
lFile.flush();
lFile.close();
After reading also i closed the file. Can someone tell me what am doing wrong??
© Stack Overflow or respective owner