PDA

View Full Version : QScrollArea with rounded border gets over-painted



Scint
23rd June 2014, 23:13
I am using a QScrollArea to display a custom widget. I would really like to have a custom border for the area: a rounded black border. However, if I set the stylesheet to get that, the scroll area gets the stylesheet just fine, but the child widget just draws over the border, like so:

10439

I tried setting a region mask, but that just cuts away at the border, too. The child widgets overwrite a border if I set the style to the viewport. I would really just like the child widget to be drawn first, then the border drawn last, rather than visa versa. It's only a problem with rounded borders. Is there a way to keep child widgets in a QScrollArea inside?