--- a/src/bytestream.cpp Sun Aug 11 03:08:14 2013 +0300 +++ b/src/bytestream.cpp Sun Aug 11 03:47:58 2013 +0300 @@ -210,8 +210,12 @@ void Bytestream::writeString (str val) { growToFit (val.length() + 1); -for (qchar c : val) + for (qchar c : val) +#if (QT_VERSION >= QT_VERSION_CHECK (5, 0, 0)) + doWrite (c.toLatin1()); +#else doWrite (c.toAscii()); +#endif // QT_VERSION doWrite ('\0'); }