Image from relative @image-url path resolves to absolute path in generated C++ code #7395
Unanswered
gammaEmitter
asked this question in
Q&A
Replies: 1 comment
-
For release/deployment builds, I suggest to set the You could do this as a generator expression perhaps: set_property(TARGET myapp
APPEND PROPERTY SLINT_EMBED_RESOURCES $<IF:$<NOT:$<CONFIG:Debug>>,embed-files,as-absolute-path>
) (untested :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Windows 11, Slint 1.9.2, Development in Visual Studio Code
In .slint file I am descibing image sources via @image-url as a relative path.
This works when in development. When I want to make the application standalone (for personal use only, home machine / work machine) those resources are absolute paths in the generated C++ file.
I know that I could handle the image files / other resources from C++ and hand them over to Slint.
But my expecation from using relative paths is that those stay relative.
Is this intended behavior or could this be a feature request?
Thanks for the fascinating development, keep on going!
Beta Was this translation helpful? Give feedback.
All reactions