As you can see in this screenshot I styled QTabWidget but I couldn’t set tab’s background to transparent although I used:
QTabWidget#tabWidget_sidebar {
background-color: rgba(255, 255, 255, 0);
}
How can I fix this issue?
The complete QSS of QTabWidget:
QMainWindow#MainWindow {
background-image: url(:/theme/bg.jpg);
}
QWidget#centralWidget {
background-color: rgba(255, 255, 255, 0);
}
/**************** SIDE BAR ****************/
QTabWidget#tabWidget_sidebar {
background-color: rgba(255, 255, 255, 0);
}
QTabWidget#tabWidget_sidebar::tab-bar {
alignment: center;
}
QTabWidget#tabWidget_sidebar::pane {
background-color: rgb(255, 255, 255, 0);
}
QTabBar::tab {
background-color: rgb(0, 0, 0, 0);
padding: 2px;
border: 2px;
text-align: center;
height: 64px;
width: 64px;
}
QTabBar::tab:selected {
background-color: rgba(255, 255, 255, 100);
}
QTabBar::tab:hover {
background-color: rgba(255, 255, 255, 150);
}
↧