I love mhcuervo's example of how to implement a custom effect. That said, fwiw, I was able to get a shadow around the child widget using your code, an offset of 0, and a large enough blur radius to spread it out around the child widget. (this, using Qt 5.4).