For example:
RowLayout {
width: parent.width
IconButton { ... }
IconButton { ... }
AppText {
Layout.fillWidth: true
text: "Let there be characters!"
}
}
The layout will not size things correctly. I believe this is due to the fact that the IconButtons do not set their implicitWidth correctly, but rather just set width which is not respected by RowLayout. This workaround does work, because Row respects its children’s width properties and yields an implicitWidth to the RowLayout:
RowLayout {
width: parent.width
Row {
IconButton { ... }
IconButton { ... }
}
AppText {
Layout.fillWidth: true
text: "Let there be characters!"
}
}