Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set a shadow effect for fonts？
Qt_crazyer last edited by Qt_crazyer
I want to set a shadow effect on my text, but I don't know how to achieve it. The text is on my QLabel.
Thanks in advance!
yugosonegi last edited by
@Qt_crazyer Text where? On a
QLabel, where? :D
Qt_crazyer last edited by
Sorry, I didn't say it clearly. It's on my QLabel.
For a label you could use a graphics effect:
auto effect = new QGraphicsDropShadowEffect(label); label->setGraphicsEffect(effect);
You can play around with the effect's properties like offset, color and blur radius.