@QtGuy said:

Component.onCompleted: {

Remove the ":"