Box shadow helper is a helper which draws box shadows, similar to CSS box-shadow property. The only thing it's missing is the spread property but we don't need it pretty much.
Demo
Let's draw a box shadow for the rect QRect(300, 200, 200, 200) with the following params:
- blur radius: 96
- vertical offset: 50
- color: black
Breeze::BoxShadowHelper::boxShadow( &painter, QRect(300, 200, 200, 200), QPoint(0, 50), 96, QColor(0, 0, 0));
the size of the canvas is QSize(800, 600)