Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何打开 QFile 进行附加,即相当于
FILE *f = fopen("myfile.txt", "a");
以模式打开文件QIODevice::Append:
QIODevice::Append
QFile f(...); if (f.open(QIODevice::WriteOnly | QIODevice::Append)) { ... }
另请参阅文档。