문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top