Qt 6.11 is out! See what's new in the release
blog
how to make the widget shadow with the qss style.
-
QWidget::shadow{ color: blue; offSet: 2px,2px; blurRadius: 4px; }some one said the code may work.but nof for me.so is there any way that the qss style could make the shadow of the widget?
-
QWidget::shadow{ color: blue; offSet: 2px,2px; blurRadius: 4px; }some one said the code may work.but nof for me.so is there any way that the qss style could make the shadow of the widget?
@nicker-player said in how to make the widget shadow with the qss style.:
QWidget::shadow
There is neither a pseudo-state nor a sub-control with this name...
Either it's a custom styled property or your "source" was talking bullsh*t :)QFrame::Shadowdoes exist forQFrame-based widgets.Or look into
QGraphicsDropShadowEffect(this was probably used in combination with theshadowproperty to configure it via stylesheet)