參考
QCustomplot使用分享(三) 圖
QCustomplot使用分享(五) 佈局
QCustomplot官網
QCustomPlot 使用整理
Qt之qcustomplot背景色改變
改變顏色
改變背景色,座標軸的顏色,座標軸名稱的顏色,座標軸上Tick的顏色,
pCustomPlotPower->xAxis->setBasePen(pen);
pCustomPlotPower->xAxis->setTickPen(pen);
pCustomPlotPower->xAxis->setSubTickPen(pen);
pCustomPlotPower->xAxis->setLabelColor(color);
pCustomPlotPower->xAxis->setTickLabelColor(color);
QBrush brush(QColor(0x44, 0x44, 0x44));
pCustomPlotPower->setBackground(brush);
示例,