on-internet
← Community

How do I add a box-shadow to an element in QT?

Stack Overflow ·

I tried to do: this->setStyleSheet("-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);") and I get the error: Unknown property -webkit-box-shadow. The same goes for box-shadow and -moz-box-shadow. Box-shadow, however, renders fine in a QWebView. Is there no way to add this effect to normal elements?

Comments

Sign in or sign up to comment and upvote.

No comments yet.