[Qt-interest] Change the width of a tab in QTabBar

Gan Xiebin gan.xiebin at gmail.com
Sun May 31 09:08:51 CEST 2009


On Sun, May 31, 2009 at 1:40 PM, Raja Sekharan <websweetweb at gmail.com>wrote:

> Hi,
> When you add a tab to the QTabBar using addTab(QString), the tab takes half
> the width of the tab bar, I wish to specify a maximum width for the tab in
> the tab bar. How do I do this?
>
> Raj
>
>
>
Hi Raj,

Try QTabWidget->tabBar()->setFixedSize().
Or have a look at QTabWidget and QStyle.

Hopes that helps.

Regards,

Bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090531/2173f845/attachment.html 


More information about the Qt-interest-old mailing list