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

QFormLayout breaks labels without any need

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Widgets: Layout
    • Labels:
      None
    • Platform/s:
      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

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes