jjzjj

customPlot

全部标签

c++ - QCustomPlot - 在 customPlot 下方的 QCPAxisRect 上显示项目

在类似于theQCustomPlotfinancialdemo的项目中我想不仅将QCPItemRect绘制到图表区域,还要绘制到图表下方的区域。有QCPAxisRect*xRect=newQCPAxisRect(this->ui.customPlot)...this->ui.customPlot->plotLayout()->addElement(1,0,xRect);我想添加QCPItemRect之类的QCPItemRect*xItem=newQCPItemRect(this->ui.customPlot);xItem->setPen(QPen(Qt::black));xItem->