开发者

Object back from pointer

开发者 https://www.devze.com 2023-03-01 16:05 出处:网络
void show(QString *s){ //Here I want to show the value of the QString. } How can I do that?? I\'d be glad if 开发者_开发技巧you could help me.Not sure exactly what you\'re asking - see my comments.
void show(QString *s){
   //Here I want to show the value of the QString.
}

How can I do that??

I'd be glad if 开发者_开发技巧you could help me.


Not sure exactly what you're asking - see my comments.

Maybe this will help?

Check out toAscii(), toLatin1(), toUtf8()

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

// etc.
0

精彩评论

暂无评论...
验证码 换一张
取 消