I've created a chat program with an Interface using QTabWidget
. If there's an update in a tab i want to set the tabs title font to a bold font. With QTabWidget::font i can only set the font of the titles of all tabs.
Unfortunately, you can only access the text itself. The font of the text is not exposed in the QTabBar of the QTabWidget. Perhaps changing the color of the tab would suffice? Otherwise, you'd have to override the painting algorithms, which probably would prove to be cumbersome. In Qt 3 it was possible accessing the QTab
with tabAt(int index)
but, unfortunately, they removed that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With