I'm plotting bars using the QCPBars class, and whish to place the values as text just above each of the bars displayed in the graph.

This means that I have to offset the QCPItemText somewhat, i.e. the position should be at least the height of the font above the top of the bar.

What is the neatest way of doing this?