怎么给QCustomPlot 坐标轴添加单位
Posted 七 六 伍
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了怎么给QCustomPlot 坐标轴添加单位相关的知识,希望对你有一定的参考价值。
效果图:
添加 void setAxisFormat(QString format);
添加函数 setAxisFormat(QString format);
修改draw 函数 添加变量 m_format
![](https://image.cha138.com/20220628/d7709ef2f05644478ea4a31997f4e721.jpg)
![](https://image.cha138.com/20220628/f9813b61136248c48b5d4b173bd44690.jpg)
以上是关于怎么给QCustomPlot 坐标轴添加单位的主要内容,如果未能解决你的问题,请参考以下文章