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 に答える