Rewind the device before you write to it again or reopen the device.
Rewind the device before you write to it again or reopen the device.
like seek(0)
I've tried serverList.seek(0) but with no success i also tried resize but that failed as well
Qt Code:
{ qDebug() << "Failed to open file for write"; } else { serverList.seek(0); stream << document.toString(); serverList.close(); }To copy to clipboard, switch view to plain text mode
Last edited by Prophet; 21st June 2012 at 18:09.
ok so apparently its not the file thats the problem, its document.toString() that once run again is appended to document.. i have tried to document.clear() after the stream << document.toString() but that still does not solve my issue any thoughts ?
Bookmarks