open时需要添加QIODevice::Text
详见文档 When reading, the end-of-line terminators are translated to '\n'. When writing, the end-of-line terminators are translated to the local encoding, for example '\r\n' for Win32.
参考博文
http://blog.csdn.net/u012689588/article/details/19431353