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

Support of margins is needed in layouts

XMLWordPrintable

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

      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 }
      }
      

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

            smd Jan Arve
            navrocky Vladislav Navrocky
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes