Open the file in QIODevice::Append
mode:
QFile f(...);
if (f.open(QIODevice::WriteOnly | QIODevice::Append)) {
...
}
See also the documentation.
More Related Contents:
- Non-blocking worker – interrupt file copy
- class->methode1()->methode2() what does it mean? [closed]
- Why QFile(“./test”) work though [Class QFile] has no QFile(char* s) constructor
- Connecting overloaded signals and slots in Qt 5
- Sending a sequence of commands and wait for response
- How to use the Qt’s PIMPL idiom?
- the procedure entry point __gxx_personality_v0 could not be located
- Qt5 Static Build yields Failed to load platform plugin “windows”
- QtCore.QObject.connect in a loop only affects the last instance
- Qt signals (QueuedConnection and DirectConnection)
- How to leverage Qt to make a QObject method thread-safe?
- How to deploy a Qt application on Windows?
- Where can I get a copy of the file libstdc++.so.6.0.15 [closed]
- How do I get a list of files in a directory in C++? [duplicate]
- How to append text to QPlainTextEdit without adding newline, and keep scroll at the bottom?
- write and read string to binary file C++
- Is there any way to building static Qt with static OpenSSL?
- Windows C++ compiler with full C++11 support (should work with Qt) [closed]
- Command working in terminal, but not via QProcess
- (Qt 5.4.1) This application failed to start because it could not find or load the Qt platform plugin “xcb”
- Changing locale in Qt
- Paint a rect on qglwidget at specifit times
- CopyFileEx with progress callback in Qt
- Qt – Determine absolute widget and cursor position
- QScrollArea with dynamically changing contents
- Columns auto-resize to size of QTableView
- How to call function after window is shown?
- QT QWebEnginePage::setWebChannel() transport object
- Do I get a finished slot if I start QProcess using startDetached
- Sort filenames naturally with Qt