Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
4.5.2, 4.5.3, 4.6.0, 4.6.1, 5.9.4
-
None
-
Ubuntu Linux 9.10, Windows XP, Windows 7
-
da632baf34ef2308da04c56c497e115b9d1ad531 (qt/qtbase/dev) 1acffda4dd6e737376a54f9b3775dd3470d5349f (qt/qtbase/6.2)
Description
To reproduce style the QTabBar with the following style sheet for example:
QTabBar::tab
QTabBar::tab:selected
{ border: 2px solid green; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom: 3px solid #ffffff; }The font becomes bold, but place for text stays the same and isn't increased.
Solution is to check tabWidget->font->bold in designer or programaticaly tabWidget->font()->setBold(true)
Another solution is to specify bold font for all elements, i.e.:
- { font-weight: bold; }
Some info: http://www.qtcentre.org/threads/28068-Style-sheets-and-font-weight-bug
Actually duplicate of http://bugreports.qt.nokia.com/browse/QTBUG-2202 which is closed by now.
Attachments
Issue Links
- duplicates
-
QTBUG-6905 font-weight: bold can truncate tab label
- Closed
-
QTSOLBUG-97 In QTabWidget, settings the title font of a tab in bold troncate the title.
- Closed
- is duplicated by
-
QTBUG-6905 font-weight: bold can truncate tab label
- Closed