View Full Version : QtabBar tabText from vertikally to horizontally

20th June 2009, 14:06

I've got a QtabWidget with the tabs on the left side. Now i want change the design of the tabbar. I changed the backgroundcolor, margin and so on with stylesheets in QtDesigner und the size with the virtual function tabSizeHint.

Now my problem is, that the tabText is still vertical and I don't know how to change it to horizontally.

I tried it with "newTabBar::paintEvent(QPaintEvent * event)" but this changes only the hole tabBar and not the several tabs.

20th June 2009, 16:24
Accoring to this thread (http://lists.trolltech.com/qt-interest/2008-04/msg00697.html) from the qt-interest mailing list it is not possible. There's a patch mentioned that adds such an option, though. If you want to compile Qt youself, this might be an option.

22nd June 2009, 08:46
Thanks for this idea, but i can`t find this file: qt4-patch.tar.gz

Do you know where i can find the patch?

22nd June 2009, 20:02
No, but you could try and ask on the qt-interest list if anyone still has it. The task tracker entry (http://www.qtsoftware.com/developer/task-tracker/?id=186458&method=entry) for this issue hasn't been changed in a year, so I guess waiting for this to enter Qt could take some time...