Has anybody come across

QGraphicsDropShadowEffect throwing the following error?

QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::translate: Painter not active

I am adding a bit of flourish in my app and when I try to put a dropshadow on widgets that are in a QStackedWidget (I am not sure if this is what is causing the crash) I am getting a crash in

void QGraphicsDropShadowEffect::draw(QPainter *painter)