I can check an entry in a qwt_legend by a mousecklick but how can I achive this programmatically.
I can hide or show a plotcurve but the representation of the curve in the legend is always unchecked

I searched the internet for a clue but found nothing really usefull.