[Interest] change of only one tab in QTabWidget

Tony Rietwyk tony at rightsoft.com.au
Sun May 19 05:08:11 CEST 2013


You can always pad the text with spaces to get an approximate result. 

 

Tony.

 

 

From: interest-bounces+tony=rightsoft.com.au at qt-project.org
[mailto:interest-bounces+tony=rightsoft.com.au at qt-project.org] On Behalf Of
Sujan Dasmahapatra
Sent: Saturday, 18 May 2013 10:54 AM
To: interest at qt-project.org
Subject: [Interest] change of only one tab in QTabWidget

 

How can I change the width of only one tab in QTabWidget?. With the below
code all tabs width is changing.

setStyleSheet( 

"QTabBar::tab { width: 25px; height: " + QString::number(eachTabHeight) +
"px; }"

);

I want to change the width of one particular tab say for index 2. Please let
me know if it's possible. Any help is appreciated.

-- 

Thanks & Regards

Sujan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130519/a81d71f9/attachment.html>


More information about the Interest mailing list