QString menu_name_back = "abc"; QByteArray ba = menu_name_back.toLatin1(); char *path = ba.data(); 将QString转换成了char *