QT Charts 的部分函数记录

设定 X轴的 label 显示文字在轴线正下方

1     QCategoryAxis* axisX = new QCategoryAxis();
2     // 对齐X轴的label
3     axisX->setLabelsPosition(QCategoryAxis::AxisLabelsPositionOnValue);

隐藏网格线,XY轴相同

1     axisX->setGridLineVisible(false);   // 隐藏X轴对应的网格线

猜你喜欢

转载自www.cnblogs.com/loveyajing1314/p/12504067.html