Form 0 0 400 300 Form QTabBar { background: #1b1b1b; min-width:200; } QTabBar::tab { background: #1b1b1b; color: #c8c8c8; border-right: 0px solid #141414; border-top: 2px solid transparent; padding: 3px 6px 3px 3px; } QTabBar::tab:hover { color: white; background: #262626; } QTabBar::tab:selected { background: #2b2b2b; color: white; border-top: 2px solid #1a8dff; border-right: none; } 1 true Tab 1 Tab 2