Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18128

Wrong default value for property layoutFieldGrowthPolicy of FormLayout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 4.2.1
    • Fix Version/s: None
    • Component/s: Widget Designer
    • Labels:
      None

      Description

      Scenario:
      1) Create a new QWidgets Application
      2) Add new Qt Designer Form Class
      3) Drag and drop some QLabels and QLineEdits (parent class doesn't matter)
      4) Select all the widgets you have just dropped
      5) Click on toolbar's button "Layout Out in a Form Layout"
      6) Run the application and resize the window/dialog you have created at step 3

      Observed result:
      1) The Window is not responsive. All the QLineEdits and QLabels have fixed size (See attachement 1)
      2) In Designer, the default value for the property layoutFieldGrowthPolicy of the FormLayout is AllNonFixedFieldsGrow (value has not been changed, the property name is not in bold) (see attachement 2). All QLineEdits and QLablels have their size adapted with the parent widget size (see attachement 3)

      Expected result:
      1) The window is responsive. All the QLineEdits and QLabels have their size depending on parent widget's size because, in Designer, the default value for layoutFieldGrowthPolicy of the FormLayout is AllNonFixedFieldsGrow. Or, the default value for layoutFieldGrowthPolicy of the FormLayout is not AllNonFixedFieldsGrow.

      Scenario (continue):
      7) Change the value for the property layoutFieldGrowthPolicy of the FormLayout (other than AllNonFixedFieldsGrow).
      8) Change again the value for the property layoutFieldGrowthPolicy and select AllNonFixedFieldsGrow (do not use the reset button) !

      Observed and expected result:
      1) The window is responsive (see attachement 4)

        Attachments

        1. 1.png
          1.png
          41 kB
        2. 2.png
          2.png
          155 kB
        3. 3.png
          3.png
          162 kB
        4. 4.png
          4.png
          39 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              kleint Friedemann Kleint
              Reporter:
              nakim Xavier Mawet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes