@Axel-Spoerl, forgive me. I noticed the example I've provided wasn't enough to replicate the issue. I have added a new one below which changes the vertical scrollbar.
The two "sub-line" parts should demonstrate the issue I'm trying to explain in regard to a vertical scrollbar. The sub-line at the bottom of the code (with a blue background) causes a blue button to appear below the scrollbar. Making it to where the sub-line with a magenta background is at the bottom of the code instead simply overrides the blue one, causing the blue button to not appear.
QScrollBar:vertical {
border: 2px solid green;
background: cyan;
width: 15px;
margin: 20px 0px 40px 0px;
}
QScrollBar::add-line:vertical {
background: gray;
height: 16px;
subcontrol-position: bottom;
subcontrol-origin: margin;
border: 2px solid black;
}
QScrollBar::sub-line:vertical {
background: magenta;
height: 16px;
subcontrol-position: bottom;
subcontrol-origin: margin;
border: 2px solid black;
position: absolute;
bottom: 20px;
}
QScrollBar::sub-line:vertical {
background: blue;
height: 16px;
subcontrol-position: top;
subcontrol-origin: margin;
border: 2px solid black;
}
Although it may not be possible, I'm wondering if both the blue and magenta scrollbar buttons can exist simultaneously.