I try (font-weigth: works, but text-align: does not work):
font-weight:bold;
text-align:left;
}
QTabBar::tab:text{
font-weight:bold;
text-align:left;
}
To copy to clipboard, switch view to plain text mode
I try, but it was also not working:
font-weight:bold;
text-align:left;
}
QTabBar::tab {
font-weight:bold;
text-align:left;
}
To copy to clipboard, switch view to plain text mode
My QTabWidget:
<item>
<widget class="QTabWidget" name="tabWidget">
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
<item>
<widget class="QTabWidget" name="tabWidget">
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
</widget>
</item>
To copy to clipboard, switch view to plain text mode
I also have not found any “property†(<property name=â€â€¦â€>) that aligns the text.
how to use the “QSS†to align the text of the tabs (QTabBar/QTabWidget) ?
Bookmarks