How to add subscript text in file created by qfile ?
-
wrote on 22 Nov 2022, 12:49 last edited by
i want to write co2 proper way in file created by qfile.
how we can write it ?
because i have seen it that it not get properly come when write into file using QTextStream and out.
-
i want to write co2 proper way in file created by qfile.
how we can write it ?
because i have seen it that it not get properly come when write into file using QTextStream and out.
wrote on 22 Nov 2022, 14:27 last edited byTry with unicode value :
QString t="co\u2082"; ----> "co₂" -
i want to write co2 proper way in file created by qfile.
how we can write it ?
because i have seen it that it not get properly come when write into file using QTextStream and out.
This post is deleted! -
i want to write co2 proper way in file created by qfile.
how we can write it ?
because i have seen it that it not get properly come when write into file using QTextStream and out.
wrote on 22 Nov 2022, 14:11 last edited by@Qt-embedded-developer
This is not a "feature" ofQFile
orQTextStream
. You will presumably need one of:-
Is there a font which offers to write a small, subscripted
2
character among its characters? I doubt it, but maybe.... -
Sounds like you would want a rich text/HTML file instead of a text one, they support some kind of "subscript", don't know whether that is recognized in Qt "subset", quite possibly not....
-
-
i want to write co2 proper way in file created by qfile.
how we can write it ?
because i have seen it that it not get properly come when write into file using QTextStream and out.
wrote on 22 Nov 2022, 14:27 last edited byTry with unicode value :
QString t="co\u2082"; ----> "co₂" -
Try with unicode value :
QString t="co\u2082"; ----> "co₂"wrote on 23 Nov 2022, 05:53 last edited byThis post is deleted!
1/5