QString's toAscii() is gone in Qt5, so stop using it, which is a good idea anyway.