[PyQt] How to get box shadows in qlabels?

Phil Thompson phil at riverbankcomputing.com
Tue Mar 10 15:56:00 GMT 2020


On 10/03/2020 15:36, Barry Scott wrote:
>> 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
> 
>>>> QtWidgets.QGraphicsDropShadowEffect
> <class 'PyQt5.QtWidgets.QGraphicsDropShadowEffect'>

Or you could just look in the class index...

https://www.riverbankcomputing.com/static/Docs/PyQt5/sip-classes.html

Phil


More information about the PyQt mailing list