怎么让下边图中坐标轴末尾的箭头也变成蓝色?

使用qcustomplot画图时通过setUpperEnding给坐标轴末尾添加的箭头怎么改变颜色?具体来说就是怎么让下边图中坐标轴末尾的黑色箭头也变成蓝色?


ui->timeFreqMatrix->yAxis->setUpperEnding(QCPLineEnding::esFlatArrow);


img

参考这个代码:如果不行,可能箭头颜色改不了

//设置坐标轴颜色

    ui->customPlot->xAxis->setBasePen(QPen(Qt::blue));

    ui->customPlot->xAxis->setTickPen(QPen(Qt::blue));

    ui->customPlot->xAxis->setSubTickPen(QPen(Qt::blue));

 

    ui->customPlot->yAxis->setBasePen(QPen(Qt::blue));

    ui->customPlot->yAxis->setTickPen(QPen(Qt::blue));

    ui->customPlot->yAxis->setSubTickPen(QPen(Qt::blue));