-
Notifications
You must be signed in to change notification settings - Fork 787
TabWidget: Add orientation property to TabWidget
#10094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
TabWidget: Add orientation property to TabWidget
#10094
Conversation
There were many duplicated part
…s based on orientation
|
Thanks for opening a PR. I think this is a feature we should have.
I'd say so, yes.
I'm afraid all the other ways would required change that would be more complicated (but that we probably still want)
(Supporting So thinking of it, the OrientedLayout seems to be the easier, and it could even be kept internal. Btw, if making it a const expression, we should also forbid assignement like so: slint/internal/compiler/typeregister.rs Lines 494 to 495 in 65fb303
and make it an error when it is not specified at compile time. |
|
Thanks for the advice! Remaining tasks:
Is there anything else? |
…m/taichi765/slint into feature/tabwidget-tabbar-position
…m/taichi765/slint into feature/tabwidget-tabbar-position
Now I'm seeing the expected appearance. However, tab alignment in Qt is very different from others (Qt is flex-start, others are stretch). |
|
From the description, I was thinking that the text would be rotated for the vertical tabs. There is no such tab in the design file from the fluent design so i think we can make our own. I think we should indeed align the tab to the top. But we don't need to change the behavior of the horizontal ones. @NigelBreslaw Do you have opinions about that? |



Summary
This PR adds an orientation property to TabWidget (Material style only), allowing the tab bar to be displayed vertically.
Related issue: #3688
Example
Notes
@childreninsideifis not yet supproted, so the implementation switches between two internal components at compile time.For example:
Questions