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

Feature request: equal filling or stretch factors

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Quick: Layouts
    • None

    Description

      Can we have a simple way to make items grow equally regardless of their implicit sizes?

      Especially in mobile/embedded, it's very common to have the same size for each button/control in a row to make them align with other content.

      RowLayout {
          width: parent.width / 2
          Button {
              text: "OK"
              Layout.fillWidth: true
          }
          Button {
              text: "Cancel"
              Layout.fillWidth: true
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              jpnurmi J-P Nurmi
              Votes:
              5 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes