QCustomPlot Discussion and Comments

Why QCPAstractItem is not a QCPLayoutElement ?Return to overview

Hi,

I wanted to insert a text surrounded by a rect in a grid layout, but noticed that QCPItemText that provides both the rect and the text cannot be inserted since it is not a QCPLayoutElement.

I turned to QCPTextElement but this latter does not provide the rect.

I would like to ask why not all "paintable" items cannot be layout elements ? Why there is such separation ?

Thanks

QCPTextElement::rect QCPTextElement::outerRect

Thanks, but this is a simple QRect, it can't be painted.