Retour de l'objet de pointeur
Question
void show(QString *s){
//Here I want to show the value of the QString.
}
Comment puis-je faire ??
Je serais heureux si vous pouviez me aider.
La solution
Je ne sais pas exactement ce que vous demandez -. Voir mes commentaires
Peut-être cela aide?
Consultez ToAscii () , toLatin1 () , toUtf8 ()
const char* data = s->toAscii(); // if you want ASCII encoding
data = s->toUtf8(); // if you want UTF-8 encoding
// etc.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow