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

QTextObjectInterface assumes no descent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8
    • GUI: Text handling
    • None
    • All

      When widgets and quick use QTextObjectInterface to draw an object it interprets the intrinsic height of the object to be all ascender. 

      For widgets this is not so noticeable, as the painter isn't clipped, so you can draw outside of the rect you're given, but with quick the object is drawn into a temporary QImage the same size the object reported.

      This can be worked around by setting an explicit vertical adjustment on the QTextCharObject to QTextCharFormat::AlignBottom, but this will break if the user overrides that for a section of the text, or the line height of the line is different than for the inserted object.

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

            esabraha Eskil Abrahamsen Blomfeldt
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes