首页 > 代码库 > QString 转 char*

QString 转 char*

1     QString str = QString("QString转换为char*");2     char *ch;3     QByteArray ba = str.toUtf8();4     ch = ba.data();