📅  最后修改于: 2022-03-11 14:44:51.581000             🧑  作者: Mango
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]