I have a Qt application and in one window inside QScrollArea and verticalLayout there is a QGroupBox with this css:
#groupBox { background-color: transparent; border-color: black; border-width: 1 px; border-style: solid; margin: 5px; } Instead of the expected result, I get this: 
I can put up with the top space in the border, it does not matter. But where are the side boundaries? Increasing padding / marging padding works, but does not fix the problem, like limiting the maximum width of GroupBox.