Please refrain from using toAscii(), it is going to be removed/deprecated in Qt5. Use toLatin1() instead.