I try (font-weigth: works, but text-align: does not work):

Qt Code:
  1. QTabBar::tab:text{
  2. font-weight:bold;
  3. text-align:left;
  4. }
To copy to clipboard, switch view to plain text mode 

I try, but it was also not working:

Qt Code:
  1. QTabBar::tab {
  2. font-weight:bold;
  3. text-align:left;
  4. }
To copy to clipboard, switch view to plain text mode 

My QTabWidget:

Qt Code:
  1. <item>
  2. <widget class="QTabWidget" name="tabWidget">
  3. <widget class="QWidget" name="tab">
  4. <attribute name="title">
  5. <string>Tab 1</string>
  6. </attribute>
  7. </widget>
  8. <widget class="QWidget" name="tab_2">
  9. <attribute name="title">
  10. <string>Tab 2</string>
  11. </attribute>
  12. </widget>
  13. </widget>
  14. </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) ?