QString转const char*

1、代码

QString a = "123";
const char * a = a.toStdString().c_str();

 

posted @ 2022-01-06 11:15  朱小勇  阅读(219)  评论(0编辑  收藏  举报