How to create custom QLineSeries class and modify content of QLegend in QtCharts?
-
wrote on 30 Mar 2017, 17:36 last edited by
- I need to split a QLineSeries in multiple sections that not connect together, each section with a different color. How to create a custon QLineSeries?
- I create multiple QLineSeries in chart, but I don't want some of them to show in the legend, it seems no way to make them disapear in the legend.
-
- I need to split a QLineSeries in multiple sections that not connect together, each section with a different color. How to create a custon QLineSeries?
- I create multiple QLineSeries in chart, but I don't want some of them to show in the legend, it seems no way to make them disapear in the legend.
wrote on 31 Mar 2017, 03:56 last edited by- I don't know how to create a custom
QLineSeries
, but maybe use a class to handle manyQLineSeries
is a choice. - I have tried using
QLegend
, it may meet your need, set up the correspondingQLegendMarker
can make the legend dissapear.
read QChart::legend, QLegend and QLegendMarker for more information
-
- I don't know how to create a custom
QLineSeries
, but maybe use a class to handle manyQLineSeries
is a choice. - I have tried using
QLegend
, it may meet your need, set up the correspondingQLegendMarker
can make the legend dissapear.
read QChart::legend, QLegend and QLegendMarker for more information
wrote on 31 Mar 2017, 04:54 last edited by@Flotisable thank you, I'll have a try
- I don't know how to create a custom
1/3