[Qt-interest] transparent background with stylesheet
Samanta Grasso
grasso at netresults.it
Tue Mar 23 14:23:21 CET 2010
Hi,
I'm new on Qt. I've a problem with stylesheet.
My main widget has a gradient as background. The push button inside it
has a transparent background, but when the mouse goes over it, the
background becames a scaled version of parent one's.
Here the stylesheet that i'm using:
#wdgMain {
background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5,
y2:1, stop:0 #353434, stop:1 #0b0b0b);
}
QPushButton#btnClose, QPushButton#btnClose:hover {
border: 0;
background-color: transparent;
}
Qt 4.6.x
How can I solve it? Thanks you very much
Samanta
More information about the Qt-interest-old
mailing list