I am using a QCPCurve (I only plot the provided points) and I try to color it on selection. The result is a blue color instead of the the black expected one:
QCPCurve * curve = new QCPCurve(xAxis, yAxis); curve->setSelectable(QCP::stSingleData); curve->setPen(QPen(Qt::green)); curve->setLineStyle(QCPCurve::lsNone); curve->setScatterStyle(QCPScatterStyle::ssDisc); QCPSelectionDecorator * decorator = new QCPSelectionDecorator(); decorator->setPen(QPen(Qt::black)); curve->setSelectionDecorator(decorator);
Do I miss something ? Thanks in advance.