作者
QQ群:852283276
微信:arm80x86
微信公众号:青儿创客基地
B站:主页 https://space.bilibili.com/208826118
参考
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);
示例,