Qt5 does not have toAscii or fromAscii. Use toLatin1 and fromLatin1 respectively. Both replacement functions exist in Qt4.8.