QString test("test"); QChar c = test.at(0); int v_latin = c.toLatin1(); // for QT > 5 int v_ascii = c.toAscii(); // for QT <= 5 [DEPRECATED]