3

How can I center an ActivityIndicator within the screen? My current code is:

Column {
    Row {
        ActivityIndicator {
            anchors.leftMargin: units.gu(10)
            running: true
        }
    }
}

1 Answer 1

4

anchors.centerIn: parent is the solution:

ActivityIndicator {
    anchors.centerIn: parent
    running: true
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .