PDA

View Full Version : QGroupBox stylesheet



GuS
28th May 2008, 19:09
Hi!

I have weird problem styleling QGroupBox, specially on border-color.
Actually i have:


QGroupBox {
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #e6e6e6, stop: 0.8 #e6e6e6, stop: 1 transparent);
border-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #b4b4b4, stop: 0.8 #b4b4b4, stop: 1 transparent);
border-width: 1px; \
border-style: solid; \
border-radius: 5px;}

Now, the end (bottom) of the gradient of the border has a weird effect.
Attached image.

Any tip?

EDIT: seems this behavior occurs with all widgets, but only on border-color using gradients with qlineargradient.

Cheers.

kongkong163
16th December 2010, 05:24
Hello, I met this problem too. The border-color seems not effect on the groupbox. If you resolved this problem, Can you give me some suggests ? Thank you.

kongkong163
16th December 2010, 07:26
I found the answer. Just add "border: 1px solid " before the border-color setting is ok.