Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12
-
None
-
-
7138d6fd6bba2c2e55d02bccf7fd0c6c287eab29
Description
open an existing file with content as below:
- QFile aFile(myFilePath);
- if(!aFile.open(QIODevice::WriteOnly | QIODevice::Truncate))
- { qDebug() << aFile.errorString(); }
- qDebug() << "Pos " << aFile.pos();
- qDebug() << "File Size write " << aFile.size();
- aFile.resize(0); // bug, the size remain the old size.
- qDebug() << "Pos " << aFile.pos();
- qDebug() << "File Size write " << aFile.size();