Skip to content

Alignment in GroupBox #949

Answered by ogoffart
Futsch1 asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: no: it's not.
This happens to work in the fluent style because we are leaking some implementation details and that the fluent style uses a layout behind the scene. But with the native style (which is the default if Qt is installed) this property does not exist.
That property is not documented and only exported by accident.

Maybe we should document and implement this property on all styles.

In the mean time, you should either not use this property (It is easy to simulate with an empty Rectangle {} that does the spacing.)
Or you can force the "fluent" style with https://docs.rs/slint-build/latest/slint_build/struct.CompilerConfiguration.html#method.with_style in your build scr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Futsch1
Comment options

You must be logged in to vote
0 replies
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