[PyQt] How to get box shadows in qlabels?

Souvik Dutta Chowdhury Souvik.viksou at outlook.com
Tue Mar 10 02:53:57 GMT 2020

Hmm but there is nothing pyqt5 called QGraphicsBoxShadowEffect

Get Outlook for Android<https://aka.ms/ghei36>

From: michael h <michaelkenth at gmail.com>
Sent: Tuesday, March 10, 2020 8:20:43 AM
To: Souvik Dutta <souvik.viksou at outlook.com>
Cc: pyqt <pyqt at riverbankcomputing.com>
Subject: Re: [PyQt] How to get box shadows in qlabels?

On Sun, Mar 8, 2020 at 9:35 PM Souvik Dutta <souvik.viksou at outlook.com<mailto:souvik.viksou at outlook.com>> wrote:
I am trying to get some neumorphism effect in qlabel. I want two box shadows for this. Both of them will be in opposite direction, one will be white and another will be black. How can I do this, I mean is there an inbuilt function. I tried adding box-shadows, box-shadow and boxshadow in the style sheet but everytime it says no property called boxshadow.

I don't believe QSS supports box-shadow. QLabel does have setGraphicsEffect() though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200310/7c9a7a4f/attachment.htm>

More information about the PyQt mailing list