PDA

View Full Version : [QTabWidget] horizontal text on left side



Boy
14th May 2008, 08:02
Hi,

small simple question: is it possible to have the tabs on the left side of the widget with the text shown horizontally...don't want user to hurt their necks when reading it ;)

wysota
14th May 2008, 08:38
No, Qt doesn't provide it. You'd have to subclass QTabBar and implement it yourself.

Boy
14th May 2008, 09:10
So QTabBar should support horizontal text on the left side? (don't see the option yet in the Assistant, but still looking)

if so: I can access the protected member QTabBar and then alter it

wysota
14th May 2008, 16:26
So QTabBar should support horizontal text on the left side?

I don't see why not. But you have to implement it yourself.

Boy
15th May 2008, 13:50
what I do as solution is buttons on the left with a frame. Instead of tabs, I created widgets and when pushing a button, the corresponding widget's parent is set to the frame

wysota
16th May 2008, 08:36
Use a QStackedWidget and a QButtonGroup. Then you'll be able to do everything using signals and slots with practically no additional code.

Boy
16th May 2008, 08:52
I found that out yesterday! :) thanks for your help again!