Home > Mobile >  Questions about the shadows to control Settings
Questions about the shadows to control Settings

Time:01-31

Code:
QGraphicsDropShadowEffect * shadow_effect=new QGraphicsDropShadowEffect (this);
Shadow_effect - & gt; SetOffset (5, 10);
Shadow_effect - & gt; SetColor (QColor (212214241));
Shadow_effect - & gt; SetBlurRadius (20);


The UI - & gt; PushButton_all - & gt; SetGraphicsEffect (shadow_effect);
The UI - & gt; PushButton_done - & gt; SetGraphicsEffect (shadow_effect);

My question is if you set up multiple with controls only rent a shadow, like the above controls only pushButton_done with shading, pushButton_all no, if after pushButton_done shielding, pushButton_all have the shadow again, anyway, if you set up multiple control shadow, will be the last one will only have the shadow, checked the along while have no find a way, could you tell me why, how should solve?

CodePudding user response:

Each control corresponds to a QGraphicsDropShadowEffect, could not use it

CodePudding user response:

This is not Shared, again,, do you have more control to have the shadow, be set separately for several new Effect respectively
  •  Tags:  
  • Qt
  • Related