Recently I have developed an plot with QCustomPlot. I use yAxis and yAxis2 as two vertical axes, and their ticks are different. For yAxis, I use plot(it's an object of QCustomPlot) to set the subgrid visible:plot->yAxis2->grid()->setSubGridVisible(true);
. But for yAxis2, I used the same statement, while the yAxis2's subgrid does not display!!! What is neccessary for the subgrids to show? Thank you for your help~