Styling QToolBox's title
General and Desktop
4
Posts
1
Posters
5.4k
Views
1
Watching
-
I'll bring this thread to the life :)
I fixed this issue by using the following style:
@QToolBox::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border-radius: 5px;
color: darkgray;
}QToolBox::tab:selected {
color: black;
}@ -
Back from the death once again :( Mistakenly I thought this issue has been fixed!!!
I couldn't set the title of the QToolBox tab in the center... How can I do it?
[code]QToolBox::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
border-radius: 3px;
text-align: right;
}QToolBox::tab::title {
text-align: right;
}[/code]