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

QLabel wordWrap = true caused weirdness in dialog sizing

XMLWordPrintable

    • c5bc66df2fd976f4e055c579f6918138d3accd87

      Adding a QLabel to the layout of a resizaeable dialog, with wordWrap = true causes the dialog to be sizeable to any size, including sizes that do not display the controls.

      I have attached a project with a main window that lets you launch two identical dialogs, with the exception of the wordWrap. One is sizeable but will not let you shrink it beyond a minimum size calculated by the size of the controls. The second, lets you size it down to any size.

      Expected:
      It is expected the second dialog would not size down to below the size allowing the display of all the controls.

      I have attached a QtCreator project. It does the same thing on both Mac and Windows.

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

            tvete Paul Olav Tvete
            nteeuwentableau Nicolas Teeuwen
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes