I'm trying to draw a simple straight vertical line. Since these methods dont work:
QCPItemLine *line = new QCPItemLine(customPlot); line->point1->setCoords(2, 0); // location of point 1 in plot coordinate line->point2->setCoords(2, 1); // location of point 2 in plot coordinate
nor this:
QCPItemLine *min1 = new QCPItemLine(ui->plot); min1->setSelectable(true); //Adding the vertical lines to the plot ui->plot->addItem(min1); min1->start->setCoords(x01, -1e7); min1->end->setCoords(x01, 1e7);
is there any other way to do that?