Is there someway of using a QFrame with the Qt::Popup flags but have it not be modal?

I tried calling setWindowModality(Qt::NonModal) but it had no effect.

The only reason I am using this flag is so that the drop shadow is displayed around the window.