The Qt documentation is misleading:
"The mode must be QIODevice::ReadOnly, QIODevice::WriteOnly, or QIODevice::ReadWrite. It may also have additional flags, such as QIODevice::Text and QIODevice::Unbuffered."
QIODevice documentation mentions the Append flag, but it not apparent from just looking at the QFile documentation.
– Ken AMay 14 '14 at 15:49