Qt提供qPrintable()宏来执行和toAscii().constData()一样的功能:
QString str = "polluter pays principle";
QString str = "polluter pays principle";
本文介绍Qt中qPrintable宏的功能及使用方法。通过示例代码展示如何利用qPrintable宏将QString类型转换为可打印的字符数组。
Qt提供qPrintable()宏来执行和toAscii().constData()一样的功能:
QString str = "polluter pays principle";
1657

被折叠的 条评论
为什么被折叠?