Hi!!

I like to move the text that it´s in textarea rigth-left-center with buttons, I do this.

Rectangle {
width: 500
height: 500
TextArea {
id: texto
anchors.centerIn: parent.bottom
selectionStart: texto.selectionStart
selectionEnd: texto.selectionEnd
Component.onCompleted: forceActiveFocus()
}

Button {
isDefault: true
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
iconSource: "images/textcenter.png"
anchors.leftMargin: parent.left
onClicked: alignCenter
}
Button {
isDefault: true
iconSource: "images/textleft.png"
anchors.leftMargin: parent.left
anchors.bottom: parent.bottom
onClicked: alignLeftAction
}
Action {
id: alignLeftAction

onTriggered: texto.alignment = Qt.AlignRight
checkable: true
checked: texto.alignment == Qt.AlignRight
}
Action {
id: alignCenter
onTriggered: texto.Center = Qt.AlignCenter
checkable: true
checked: texto.Center = Qt.AlignCenter
}
}

But don´t run.

Thanks