Domanda

I am having trouble showing superscript in Qt.

I am getting the string as std::string I²xt . But, I have to show it as I²xt in QString.

I am getting the character  as extra. How can I remove this character from the QString, and keep the superscript at the same time?

È stato utile?

Soluzione

Use QString::fromUtf8(inputstring.c_str())

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top