Skip to content

oKcerG/QuickBehaviors

Repository files navigation

QuickBehaviors

A set of Qt Quick Behaviors to easily and declaratively animate an Item when one of its property changes.

Timer {
    id: timer
    property bool toggle: true
    running: true
    repeat: true
    interval: 1000
    onTriggered: toggle = !toggle
}
Text {
    text: timer.toggle ? "ON" : "OFF"
}
Text {
    text: timer.toggle ? "ON" : "OFF"
    CrossFadeBehavior on text { }
}
Text {
    text: timer.toggle ? "ON" : "OFF"
    FadeBehavior on text { }
}
Text {
    text: "ON"
    visible: timer.toggle
    VisibleBehavior on visible { }
}

preview

Read the implementation files and the demo project to get more details about the features and possibilities. You can also preview the demo project in video.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages