Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add subscript text in file created by qfile ?
Forum Updated to NodeBB v4.3 + New Features

How to add subscript text in file created by qfile ?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 375 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    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.

    jsulmJ JonBJ M 3 Replies Last reply
    0
    • Q Qt embedded developer

      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.

      M Offline
      M Offline
      mpergand
      wrote on last edited by
      #4

      @Qt-embedded-developer

      Try with unicode value :
      QString t="co\u2082"; ----> "co₂"

      Q 1 Reply Last reply
      4
      • Q Qt embedded developer

        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.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2
        This post is deleted!
        1 Reply Last reply
        0
        • Q Qt embedded developer

          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.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #3

          @Qt-embedded-developer
          This is not a "feature" of QFile or QTextStream. 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....

          1 Reply Last reply
          0
          • Q Qt embedded developer

            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.

            M Offline
            M Offline
            mpergand
            wrote on last edited by
            #4

            @Qt-embedded-developer

            Try with unicode value :
            QString t="co\u2082"; ----> "co₂"

            Q 1 Reply Last reply
            4
            • M mpergand

              @Qt-embedded-developer

              Try with unicode value :
              QString t="co\u2082"; ----> "co₂"

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on last edited by
              #5
              This post is deleted!
              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved