是QT4, 那QString到char*应该怎么转呢?
Qt5:可以像楼上一样直接用 Qt4 :char *ch = "我是中文"; QString str = QString::fromUtf8(ch));
16,213
社区成员
26,593
社区内容
加载中
试试用AI创作助手写篇文章吧