QtChart, QLineSeries. Change the Line style
-
Please advise, is a possbile to change the style of line for QLineSeries? I would like to have dotline style. I am doing as below but line still straight
QRgb color1 = qRgb(255, 0, 0); QPen pen1(color1); pen1.setStyle(Qt::DotLine); pen1.setWidth(1); auto s1 = new QLineSeries(this); s1->setUseOpenGL(true); s1->setPen(pen1); s1->append(0, 0); s1->append(1, 1); chart->addSeries(s1);
-
Please advise, is a possbile to change the style of line for QLineSeries? I would like to have dotline style. I am doing as below but line still straight
QRgb color1 = qRgb(255, 0, 0); QPen pen1(color1); pen1.setStyle(Qt::DotLine); pen1.setWidth(1); auto s1 = new QLineSeries(this); s1->setUseOpenGL(true); s1->setPen(pen1); s1->append(0, 0); s1->append(1, 1); chart->addSeries(s1);
-
@aliks-os my pleasure. If you think this satisfies your question, you may want to mark the topic as solved.