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

QLabel wordWrap = true caused weirdness in dialog sizing

    XMLWordPrintable

Details

    • c5bc66df2fd976f4e055c579f6918138d3accd87

    Description

      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.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-37673
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes