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

QLabel is cut off when rendering HTML

    XMLWordPrintable

Details

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

    Description

      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).

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes