get ascii value of qchar

Solutions on MaxInterview for get ascii value of qchar by the best coders in the world

showing results for - "get ascii value of qchar"
Benjamin
18 Jun 2018
1QString test("test");
2QChar c = test.at(0);
3int v_latin = c.toLatin1(); // for QT > 5
4int v_ascii = c.toAscii(); // for QT <= 5 [DEPRECATED]