[Development] Styling tabs of the QMdiArea

Marijke Van Bergen MVanBergen at ompartners.com
Thu Nov 13 12:51:54 CET 2014


Hi,

I am trying to style the tabs of a tabbed QMdiArea, using qss.
Coloring the tab and setting a border works very smoothly. But if I want to change the font size of the text in the tab, the tab width is not calculated correctly.
The tab width is too small which makes that part of the text is not shown.

This is what I added to my qss:
QMdiArea > QTabBar::tab:selected,
QMdiArea > QTabBar::tab:!selected {
      font-size: 14px;
}

Does somebody has an idea what goes wrong here?
Are there some qss specialists reading this mailing list?

Thanks!
Marijke

Marijke Van Bergen
Software Development Manager

mvanbergen at ompartners.com

OM Partners
Koralenhoeve 23
2160 Wommelgem
Belgium

Phone: +32 3 650 22 11, Fax: +32 3 650 22 90
Direct: +32 3 650 23 42 , Mobile: +32 473 95 28 16

http://www.ompartners.com<http://www.ompartners.com/>




IMPORTANT NOTICE
The information in this e-mail and any attachments is intended for the addressee only. The contents do not represent the opinion of OM Partners n.v. or any of its affiliates except to the extent that it relates to their official business. If you receive this in error, please contact the sender and delete the material from any computer.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141113/f5b999ed/attachment.html>


More information about the Development mailing list