Skip to content

Error: 'z' must be a number literal #4739

Answered by tronical
mitchgrout asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, I'd also use a central config. Writing filter like that is not possible in .slint code yet, but using a FilterModel in Rust or C++ should be possible. You could have a callback that has basically the signature of filter as you prototyped it above and instead of lambda-to-select-white-keys you pass in the parameters you need to select the white or black keys.

Error: 'z' must be an number literal

What's the rationale for requiring a literal value? Is there a way I can resolve this without re-ordering my model?

Dynamic z ordering it not implemented yet - tracking this in #221 .

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tronical
Comment options

Answer selected by mitchgrout
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