I tried to create a multiple rows tab with QTabWidget like this
I also set tabPosition = South but I can’t have multiple rows tab because all tabs are horizontal (all of them are in a row, not multi rows). These are the tabs which I got
I have read this post but it doesn't help me solve the problem. Does everyone have any ideas or solutions?
Thanks!
There is no such option by default. You need to implement this behavior manually. Create a vertical layout and put a QStackedWidget
and several QTabBar
s into this layout. Tab contents will be displayed in the stacked widget. You need to add new tab bars when needed and remove them when they are no longer needed. Also you need to check if only one tab is active over all tab bars and display according content in the stacked widget.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With