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

QLabel is cut off when rendering HTML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.1
    • GUI: Text handling
    • None

      When render HTML on QLabel, the size of the QLabel is inaccurate. The issue becomes obvious when putting multiple HTML QLabels in a vertical layout - the QLabels at the bottom are cut off (p1). Replacing `label->setText(html);` with `label->setText(markdownText[i]);` in the example code can bring the rendering back to normal (p2).

       

        1. example.cpp
          4 kB
        2. 1.png
          1.png
          74 kB
        3. 2.png
          2.png
          74 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            miazheng Mia Zheng
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes