Home > Back-end >  QGraphicsDropShadowEffect shadows set led panel is not visible???????
QGraphicsDropShadowEffect shadows set led panel is not visible???????

Time:12-05

This - & gt; SetStyleSheet (" UPDefinePanel {border: 1 px 1 px solid; Border - the radius: 10 px} ");//set the rounded corners and background transparent
//this - & gt; SetGeometry (this - & gt; Pos (.) (x), and this - & gt; Pos (.) (y), and this - & gt; Width () - 5, this - & gt; Height () - 5);//set range box
QGraphicsDropShadowEffect * shadow_effect=new QGraphicsDropShadowEffect (this);
Shadow_effect - & gt; SetOffset (0, 0);
Shadow_effect - & gt; SetColor (Qt: : black);
Shadow_effect - & gt; SetBlurRadius (10);
This - & gt; SetGraphicsEffect (shadow_effect); [/b]
  • Related