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

QFormLayout breaks labels without any need

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • Widgets: Layout
    • None
    • All

    Description

      When a QFormLayout is set to 'QFormLayout::WrapAllRows' and there are labels with lineBreak enabled then the labels are wrapped without any need. Looks like WrapAllRows is applied after the widget size calculation. A testcase is attached.

      Original report from forum: https://forum.qt.io/topic/121988/qlabel-does-not-extend-to-full-width-of-qformlayout-when-wrapped

      Attachments

        1. main.cpp
          1 kB
          Christian Ehrlicher

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: