I am creating a custom widget my_widget inheriting from QWidget.
my_widget
QWidget
Here, I have a label to which I would like to apply QGraphicsDropSha
QGraphicsDropSha
Works for me in C++. I did the following in a QDialog containing a QLabel object named titleLabel. I'm using Qt 4.8.4 on a Windows XP computer.
QDialog
QLabel
titleLabel
QGraphicsDropShadowEffect* eff = new QGraphicsDropShadowEffect(this); eff->setBlurRadius(5); titleLabel->setGraphicsEffect(eff);