Hello all,
I'm having trouble selecting data points on my graph
I have selected QCPScatterStyle::ssCircle style for my graph, but cannot click on each point to get highlight.
When I use setSelectable(QCP::stDataRange), there are selected the path lines only, not points
My code:
connect(ui->wgGraph, SIGNAL(mousePress(QMouseEvent*)), this, SLOT(mousePress())); } void SVP::mousePress() { ui->wgGraph->setInteractions(QCP::iSelectPlottables); ui->wgGraph->setSelectionRectMode(QCP::srmSelect); ui->wgGraph->graph(0)->setSelectable(QCP::stDataRange); }
Thanks all