And where do you set the background color?

Your widget is really a good candidate for a dialog... You can remove its decorations by passing an appropriate hint to the window manager to make it look more like it was embedded into the parent window.

How does your eventFilter() implementation look like?