QCustomPlot使用

參考

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);

示例,
145

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章