Had a bit of a D'oh! moment... you could open with "QFile::WriteOnly | QFile::Truncate" in the first place.