Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
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
- relates to
-
QTBUG-31299 ScrollView: would be nice to be able to set margins to the contentItem
- Open
-
QTBUG-40399 QML GridLayout (and RowLayout, ColumnLayout) don't support margins.
- Closed