Skip to content

Cannot animate progress property of Spinner #4529

Description

@tronical

The following test case should animate the progress property of the Spinner, but somehow it... doesn't:

import { Spinner } from "std-widgets.slint";
export component Demo {
    spinner := Spinner {
        animate progress {
            duration: 3s;
        }
    }
    TouchArea {
        clicked => {
            spinner.progress = 0.5;
        }
    }
}

testcase

Going through an intermediate property works:

import { Spinner } from "std-widgets.slint";
export component Demo {
    spinner := Spinner {
        property <float> p;
        animate p {
            duration: 3s;
        }
        progress: p;
    }
    TouchArea {
        clicked => {
            spinner.p = 0.5;
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:compilerSlint compiler internal (not the codegen, not the parser)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions