PDA

View Full Version : [Qt] Changing style in tab



Xandareva
25th January 2011, 15:14
Hey there,

I have got a small problem with my app. I don't know how to change the style of text in tab. I want to change style like bold, change font color. I was trying to do it but all tries didn't slove my problem.

I attach a screen where my problem is. How to change the style of text which is underlined?

5825

Can you give me the solution of this problem?

Thanks a lot.

Best regards.

aamer4yu
25th January 2011, 19:05
I guess that is not possible with plain stylesheet.
You will need to write your own tab bar for that I guess !

Xandareva
25th January 2011, 19:08
Could you show how should it look like? :)

Tomasz
26th January 2011, 14:29
I don't know if It helps, but it works for me just fine:



QTabBar::tab:selected {
background: #330099;
height: 20px;
font-style: italic;
font-size: 15px;
color: white;
}


best regards
Tomasz