Qt: shadow around window

前端 未结 2 1840
情书的邮戳
情书的邮戳 2021-01-02 09:11

I can add shadow to widget:

QGraphicsDropShadowEffect *bodyShadow = new QGraphicsDropShadowEffect;
bodyShadow->setBlurRadius(9.0);
bodyShadow->setColor         


        
2条回答
  •  耶瑟儿~
    2021-01-02 09:39

    I love mhcuervo's example of how to implement a custom effect. That said, fwiw, I was able to get a shadow around the child widget using your code, an offset of 0, and a large enough blur radius to spread it out around the child widget. (this, using Qt 5.4).

提交回复
热议问题