brcontainer
12th December 2013, 20:53
I try (font-weigth: works, but text-align: does not work):
QTabBar::tab:text{
font-weight:bold;
text-align:left;
}
I try, but it was also not working:
QTabBar::tab {
font-weight:bold;
text-align:left;
}
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>
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) ?
QTabBar::tab:text{
font-weight:bold;
text-align:left;
}
I try, but it was also not working:
QTabBar::tab {
font-weight:bold;
text-align:left;
}
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>
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) ?