国产成人毛片视频|星空传媒久草视频|欧美激情草久视频|久久久久女女|久操超碰在线播放|亚洲强奸一区二区|五月天丁香社区在线|色婷婷成人丁香网|午夜欧美6666|纯肉无码91视频

數(shù)據(jù)埋點(diǎn)怎么實(shí)現(xiàn) qcustomplot在linux能實(shí)現(xiàn)嗎?

qcustomplot在linux能實(shí)現(xiàn)嗎?在應(yīng)用程序中使用qcustomplot有兩種方法:1。下載qcustomplot。H和qcustomplot.cpp文件加入你的項(xiàng)目。在要使用qcustom

qcustomplot在linux能實(shí)現(xiàn)嗎?

在應(yīng)用程序中使用qcustomplot有兩種方法:1。下載qcustomplot。H和qcustomplot.cpp文件加入你的項(xiàng)目。在要使用qcustomplot:[CPP]viewplan input print的文件中?#包括“qcustomplot。然后像QWidget一樣使用它

mouseevent->pos()可以得到相對(duì)于viewport()的坐標(biāo)POS,然后Size1=customplot->viewport()。Size()size2=customplot->axisrect()->size()和pos-(size1-size2)/2可以得到鼠標(biāo)點(diǎn)擊位置的坐標(biāo)

QCustomPlot怎么獲取圖像中的點(diǎn)對(duì)應(yīng)當(dāng)前坐標(biāo)軸的坐標(biāo)?

所以有兩種實(shí)現(xiàn)方法:

我們只需要用父控件實(shí)現(xiàn)slot函數(shù)來綁定這些信號(hào)做特定的處理

實(shí)現(xiàn)slot函數(shù)的子類qcustomplot,重載鼠標(biāo)按下,移動(dòng),釋放和其他鼠標(biāo)事件函數(shù)

巧合的是,我也用QT來畫圖,但它沒有你畫的那么復(fù)雜。你可以試試qcustomplot。非常方便??梢援嬕话愕膱D畫。