Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.12
-
Fix Version/s: 5.12.5, 5.13.1, 5.14.0 Alpha
-
Component/s: Core: I/O
-
Labels:None
-
Platform/s:
-
Commits: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();