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

QTextDocument: Support for vertical alignment in points

XMLWordPrintable

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

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes