QString 转换成 char* 方法1: QString str = "ABC"; char *chStr = NULL; QByteArray ba = str.toLatin1(); chStr = ba.data();