Skip to content
Discussion options

You must be logged in to vote

altering the string-literal values of @image-url and/or being able to assign an image included in-build

You can get an image loaded by native code.

For exemple:

export global Logic {
   callback load-image(string) -> image;
}

//...

    Image { 
        source: Logic.load-image(some-url-property);
    }

Then you implement the load-image in native code using the slint::Image API.

specify a callback to be executed on program execution (so as soon as the slint backend successfully opens)

I believe you can use the init callback https://slint.dev/releases/1.3.2/docs/slint/src/language/builtins/callbacks#init

although certainly not something i have in plans at the moment, the ability to …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mn-pal-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants