QCustomPlot Discussion and Comments

How to update QCPItemRect ?Return to overview

I have once set the QCPItemRect once but then when I try to update the value using
QCPItemPosition::setCoords ( double key, double value )
It doesnt update.
Is update not possible?

Your changes are made but not visible yet. To see your rectangle at the new position you have to call replot() on your QCustomPlot or on the QCPLayer the rec is drawn on.