QCustomPlot Discussion and Comments

Change the drawing order of QCPAxis Return to overview

Hi All,
How can I change the drawing order of QCPAxis if they are already in the QCPAxisRect? Example:
https://i.ibb.co/tKJWk4L/example.png
Thanks in advance.

Perhaps I badly explained the problem. I added some QCPAxes to QCPAxisRect, by calling the addAxis (...) method. As a result, their positions correspond to the order of addition. Now I want to swap them.

you may be able to use layers to change the draw order, but that may not work. my guess is other than that, you would have to remove the axis and then add it back.

Thank you ian.