I use this code to attach QCPItemText to QCPItemTracer but the QCPItemText is too close to the QCPItemTracer. What can I do to implment certain offset between them and such offset should remain after zooming etc?
QCPItemTracer* tracer = new QCPItemTracer(customPlot);
tracer->setGraph(customPlot->graph());
tracer->setGraphKey(-25);
QCPItemText *text = new QCPItemText(customPlot);
text->position->setType(QCPItemPosition::ptAxisRectRatio);
text->setText("testing");
text->setTextAlignment(Qt::AlignLeft);
text->position->setParentAnchor(tracer->anchor("position"));