1
void show(QString *s){
   //Here I want to show the value of the QString.
}

我怎样才能做到这一点??

如果你能帮助我,我会很高兴。

4

1 回答 1

0

不确定你到底在问什么 - 请参阅我的评论。

也许这会有所帮助?

查看toAscii()toLatin1()toUtf8()

const char* data = s->toAscii();  // if you want ASCII encoding
data = s->toUtf8();  // if you want UTF-8 encoding

// etc.
于 2011-04-27T19:41:59.853 回答