Thanks, Uwe.

Now that was interesting: the problem was a matter of color; I was trying to paint a black label in a graph with a black background, without noticing that the place where I was telling the color was wrong - should have been the QwtText's color, not the line's one.