Thank you! the hint with the "external" was right... so I found out that it is indeed an external legend and therefore I only have to override the legend's paintEvent() to draw my frame with filled background

Cheers!