PDA

View Full Version : QChartView and QScatterSeries overrdide the label of a QPointF



ironexmaiden
15th August 2018, 11:28
Hello everyone

I have QChartView which displays some 2D points which are representing each one a specific project I want to label each point with the project name AND NOT with it's x,y coordinates as the default behaviour

12931

Is there any way to achieve override the function that creates or render the labels?

Thanks in advance

d_stranz
16th August 2018, 22:00
Is there any way to achieve override the function that creates or render the labels?


No. The Qt Charts library is rigid and completely non-customizable. You get what you get, and if you don't like it, too bad. There are no virtual functions you can override, no way to add a new series type, no way to add a new chart type, no way to do anything that doesn't come out of the box.

You should take a look at QCustomPlot or Qwt if you want a plotting library with more flexibility.