PDA

View Full Version : QTabbar and QStyle set scroll width



yagabey
18th May 2015, 08:11
Hi,

I am using QStyle on my vertical tabwidget to allign tab texts in horizontal direction:


if (type == QStyle::CT_TabBarTab)
s.transpose();

My problem is that tabbar's scroll arrows are very small. If i had used stylesheet i would solve the problem with :


tabs->setStyleSheet("QTabBar::scroller { width: 20px; }");

But i cannot use stylesheet in QStyle derived class.

How can i both control my tabtext orientation and tabbar's scroll's size.

Thanks in advance..