How to create custom QLineSeries class and modify content of QLegend in QtCharts?
Unsolved
General and Desktop
-
- 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 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
-
@Flotisable thank you, I'll have a try