[PyQt] How to get box shadows in qlabels?
barry at barrys-emacs.org
Tue Mar 10 15:36:42 GMT 2020
> On 10 Mar 2020, at 02:53, Souvik Dutta Chowdhury <souvik.viksou at outlook.com> wrote:
> Hmm but there is nothing pyqt5 called QGraphicsBoxShadowEffect
In the docs https://doc.qt.io/qt-5/qgraphicsdropshadoweffect.html <https://doc.qt.io/qt-5/qgraphicsdropshadoweffect.html> it says that
this is part of widgets "qmake: QT += widgets"
That tells me that I should look in PyQt5.QtWidgets to find the class.
>>> from PyQt5 import QtWidgets
> 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.
> PyQt mailing list PyQt at riverbankcomputing.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt