@Kyeiv said in Place items in GridLayout leaving empty column:
anchors.horizontalCenter: parent.horizontalCenter
you can't use "anchors" inside an item that is direct child of a QML Layout, you should see a warning for that.
This will put the text exactly in the center
GridLayout{
anchors.fill : parent
columns : 3
Item{
Layout.fillWidth:true
Layout.columnSpan : 3
Text{
text : "Hello"
anchors.centerIn:parent
}
Button{
anchors.right:parent.right
anchors.verticalCenter:parent.verticalCenter
}
}
}