Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试着做:this->setStyleSheet("-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);")我得到了错误:Unknown property -webkit-box-shadow。box-shadow和也是如此-moz-box-shadow。然而,Box-shadow 在 QWebView 中渲染得很好。有没有办法将这种效果添加到普通元素中?
this->setStyleSheet("-webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);")
Unknown property -webkit-box-shadow
box-shadow
-moz-box-shadow
查看 QFrame 的文档。有一个框架阴影属性。
http://doc.qt.io/qt-5/qframe.html#Shadow-enum