Thank you, Uwe, for your answer. I tried some stuff according to it. I tried already getting the items of the legend with legendItems(), zero itmes are returned, then I tried to set the backgroundRole of the QScrollArea (which is the parent of the contentsWidget()), didnt work. So I really wonder which widget I should take to set the background color.
Sorry for this noobish kind of answer, but I need to modify a library written by somebody else and the original writer has implemented this legend with a QwtLegend. Thats the reason why I really dont know about it.
All I see is a rectangle box where some curve item labels are listet. This rectangle box should be filled with a background color before the curve item labels are drawn, so the grid item behind the legend item doesnt not shine through.
Any help is appreciated.
Bookmarks