qcustomplot繪制數(shù)據(jù)點(diǎn) qcustomplot在linux能實現(xiàn)嗎?
qcustomplot在linux能實現(xiàn)嗎?在你的應(yīng)用中使用QCustomPlot有2種方法:1、將下載下來的qcustomplot.h和qcustomplot.cpp加入你的工程中。在你要使用qcu
qcustomplot在linux能實現(xiàn)嗎?
在你的應(yīng)用中使用QCustomPlot有2種方法:1、將下載下來的qcustomplot.h和qcustomplot.cpp加入你的工程中。在你要使用qcustomplot的文件中:[cpp]viewplaincopyprint?#include"qcustomplot.h"然后像使用QWidget那樣使用就行
QCustomPlot怎么獲取圖像中的點(diǎn)對應(yīng)當(dāng)前坐標(biāo)軸的坐標(biāo)?
MouseEvent->pos()可以獲得相對于viewport()的坐標(biāo)pos,然后size1=customPlot->viewport().size()size2=customPlot->axisRect()->size()再pos-(size1-size2)/ 2就可以獲得鼠標(biāo)點(diǎn)擊位置的坐標(biāo)
qcustomplot怎么畫扇形圖表?
所以有兩種方法實現(xiàn):
我們只要以父控件實現(xiàn)槽函數(shù)來綁定這些信號來做特定處理就行了
實現(xiàn)QCustomPlot的子類,重載鼠標(biāo)按下,移動,釋放等鼠標(biāo)事件函數(shù)