Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39796

QTextDocument: Support for vertical alignment in points

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.1, 5.3.0
    • GUI: Text handling
    • None
    • Win 7

    Description

      It would be very helpful for me if in QTextDocument it was possible to change the vertical alignment of a text passage (i.e. QTextFragment) in detail in pt units.

      In HTML e.g. you would write:

      <p>Hello<br>
      Hello<span style='vertical-align:-5pt;'>Hello deep</span>
      <br>Hello Hello Hello Hello</p>

      what should be rendered in this way:

      I know there is a method setVerticalAlignment in QTextCharFormat, but this can only handle with some special modes (top, bottom, ...). What I'm missing is a function to specify the alignment in pt (> 0 -> higher; < 0 -> deeper). The size of the font should not change, only the alignment.

      I can't usw QtWebKit because it isn't supported on iOS und Android ... so would be very nice to integrate this feature into QTextDocument!

      Best, Christian

      Attachments

        1. example.png
          1 kB
          Christian Schauss
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            chriskatze Christian Schauss
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes