How to create custom QLineSeries class and modify content of QLegend in QtCharts?
-
- 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.
- I don't know how to create a custom
QLineSeries, but maybe use a class to handle manyQLineSeriesis a choice. - I have tried using
QLegend, it may meet your need, set up the correspondingQLegendMarkercan 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 manyQLineSeriesis a choice. - I have tried using
QLegend, it may meet your need, set up the correspondingQLegendMarkercan make the legend dissapear.
read QChart::legend, QLegend and QLegendMarker for more information
@Flotisable thank you, I'll have a try
- I don't know how to create a custom