daisy
daisy

Reputation: 23501

Represent QTabWidget's tab text in Qt StyleSheet file?

How can i set the font size of the tab text for a QTabWidget , with Qt's StyleSheet file ? I just don't know "what" widget is that

QTabWidget { font: 10pt; } 

wasn't helping.

Upvotes: 0

Views: 1018

Answers (1)

Clare Macrae
Clare Macrae

Reputation: 3799

It's QTabBar.

Have a look at the Customizing QTabWidget and QTabBar docs for info.

This is how to set its font size:

QTabBar::tab { font: 10pt }

Upvotes: 2

Related Questions