PDA

View Full Version : Shade in background?



Niamita
29th June 2011, 11:36
Hi
I want to give shade in a button background , with stylesheet is it possible.

augusbas
29th June 2011, 11:58
Do you mean background color ?

This way you can ..

setStyleSheet ("QPushButton{ background: red } " )

or


QPushButton push("Quit");

push.setStyleSheet ("QPushButton{ background-color: rgb(0, 0, 255) } " ) ;

Niamita
29th June 2011, 12:05
i know setting the background but how i can give a 3d/shaow view in the background.

augusbas
29th June 2011, 12:22
see this whether it will have any change -- "QPalette::Shadow "