qcustomplot绘制数据点 qcustomplot在linux能实现吗?

qcustomplot在linux能实现吗?在你的应用中使用QCustomPlot有2种方法:1、将下载下来的qcustomplot.h和qcustomplot.cpp加入你的工程中。在你要使用qcu

qcustomplot在linux能实现吗?

在你的应用中使用QCustomPlot有2种方法:1、将下载下来的qcustomplot.h和qcustomplot.cpp加入你的工程中。在你要使用qcustomplot的文件中:[cpp]viewplaincopyprint?#include"qcustomplot.h"然后像使用QWidget那样使用就行

QCustomPlot怎么获取图像中的点对应当前坐标轴的坐标?

MouseEvent->pos()可以获得相对于viewport()的坐标pos,然后size1=customPlot->viewport().size()size2=customPlot->axisRect()->size()再pos-(size1-size2)/ 2就可以获得鼠标点击位置的坐标

qcustomplot怎么画扇形图表?

所以有两种方法实现:

我们只要以父控件实现槽函数来绑定这些信号来做特定处理就行了

实现QCustomPlot的子类,重载鼠标按下,移动,释放等鼠标事件函数