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

Support of margins is needed in layouts

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.5.0
    • None
    • Quick: Layouts
    • None
    • 52e1044a1a22525b960d9e1d336ac06c4f39e6d5

    Description

      It is often needed to adapt margins of a control that placed in the layout. At this moment it's tricky and hard task.

      ColumnLayout {
          Item {
              implicitWidth: text.implicitWidth + text.anchors.leftMargin
              implicitHeight: text.implicitHeight
              Text { id: text; anchors.fill: parent; anchors.leftMargin: 20 }
          }
      }
      

      It will be more nicely if I can do it as follows:

      ColumnLayout {
          Text { id: text; Layout.leftMargin: 20 }
      }
      

      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
              navrocky Vladislav Navrocky
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes