1

I want to display like picA but now it's like picB ,

enter image description here

here is my stylesheet

QTabBar:tab {  
    background-color: #2D2D2D;
    color: #969696;
    font: 9pt "Courier New";
    padding: 15px;
}
QTabBar:tab:selected {  
    background-color: #1E1E1E;
    color: #FFFFFF;
    font: 9pt "Courier New";
    padding: 15px;
}  
ekhumoro
  • 115,249
  • 20
  • 229
  • 336
Relax ZeroC
  • 651
  • 1
  • 12
  • 27
  • You can set width for tab bar `width: 100px; ` – GAVD Oct 31 '17 at 07:36
  • I can't reproduce this. For me, the tabs always expand to fit the text and padding. What platform are you on? Are you applying any other stylesheets? – ekhumoro Oct 31 '17 at 18:57
  • I use win7, if I use default font size and type,it's normal , and I try to find how to set content margin, but I don't find the answer , therefore ,maybe should I use delegate to do that? – Relax ZeroC Nov 01 '17 at 02:42

0 Answers0