Skip to content

Package/namespace directive for components #4871

Answered by ogoffart
mitchgrout asked this question in Ideas
Discussion options

You must be logged in to vote

Since Slint 1.5, it is possible to specify NAMESPACE in the cmake command to generate the classes in a namespace:
https://slint.dev/releases/1.5.0/docs/cpp/cmake_reference

Example:

slint_target_sources(todo ../ui/todo.slint NAMESPACE todo_ui)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mitchgrout
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
Ideas
Labels
None yet
2 participants