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

Qlabel rendering broken when word wrapping enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.15
    • Widgets: Layout
    • None

    Description

      QLabel rendering is broken in Qt5 (5.15) when setWordWrap() is set to true. See the sample application, that creates the simplest QFormLayout with QLabels. In many cases (use the data from the attached data.txt file), the layout sizeHint() is completely different from what is rendered leading to cut off texts.

      On Qt6 (6.4) the rendering/layout works fine.

      Attachments

        1. bug.tar.gz
          2 kB
          Martin Tůma
        2. Qt5.png
          63 kB
          Martin Tůma
        3. Qt6.png
          59 kB
          Martin Tůma
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            tumic Martin Tůma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes