SlotsLayout { id: myLayout padding.top: units.gu(15) padding.bottom: units.gu(5) }
SlotsLayout { padding: myLayout.padding }
Would return an error:
Slots.qml: Invalid property assignment: "padding" is a read-only property So to achieve this we need to manually assign the subvalues.
It would be nice to do it all at once.
SlotsLayout {
id: myLayout
padding.top: units.gu(15)
padding.bottom: units.gu(5)
}
SlotsLayout {
padding: myLayout.padding
}
Would return an error:
Slots.qml: Invalid property assignment: "padding" is a read-only property
So to achieve this we need to manually assign the subvalues.
It would be nice to do it all at once.