Answer the question
In order to leave comments, you need to log in
QML how to make animation for Layout.fillHeight?
Good day!
It is necessary to animate the folding of the rectangle, all the markup on Layouts.
For example:
Rectangle {
id: contentWrapper
Layout.fillWidth: true
Layout.fillHeight: true
Behavior on height {
NumberAnimation { duration: 500; }
}
states: [
State {
name: "hidded"
when: label.hide
PropertyChanges {
target: contentWrapper
Layout.fillHeight: false
height: 0
}
}
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question