Unsolved How to draw shadow in a rectagle
-
I was wondering how to draw a shadow in a rectangle like this one (top and bottom only):
Our designer sent this file for me and I have to draw this manually using
QRect
. The second image describes the position of the shadow. -
Hi
My monitor is old so cant really see the shadow ;)
But you can make drop shadow effects with
http://doc.qt.io/qt-5/qgraphicsdropshadoweffect.html#details -
Maybe your designer seems to have used a gradient pattern. like this:
background-color: qlineargradient(spread:reflect, x1:0, y1:0.574, x2:0, y2:0.306182, stop:0 rgba(0, 0, 155, 255), stop:1 rgba(0, 0, 127, 255));