qcustomplot使用鼠标点击选中多个点

使用qcustomplot类来实现对多个物体的选择   如图所示,我画了一个散点图,现在我想要实现使用鼠标点击选中某些点的功能      如上图所示,代码如下(附带详细注释): 1 void MainWindow::myPaint(QCustomPlot *customPlot) 2 { 3 QPen pen; 4 pen.setColor(QColor(255,0,0)); 5
相关文章
相关标签/搜索