torna oggetto dal puntatore
Domanda
void show(QString *s){
//Here I want to show the value of the QString.
}
Come posso fare che ??
Sarei felice se potesse aiutare.
Soluzione
Non so esattamente quello che stai chiedendo -. Vedere i miei commenti
Forse questo aiuterà?
ToASCII () , toLatin1 () , toUtf8 ()
const char* data = s->toAscii(); // if you want ASCII encoding
data = s->toUtf8(); // if you want UTF-8 encoding
// etc.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow