void show(QString *s){
//Here I want to show the value of the QString.
}
我怎样才能做到这一点??
如果你能帮助我,我会很高兴。
不确定你到底在问什么 - 请参阅我的评论。
也许这会有所帮助?
查看toAscii(),toLatin1(),toUtf8()
const char* data = s->toAscii(); // if you want ASCII encoding
data = s->toUtf8(); // if you want UTF-8 encoding
// etc.