Hello I'm new in Qt and I want to draw points on a chart with a spline series, So far I reimplement the paint() function of QChart but it does nothing.
Please can anyone help me??
thank in advanced.
pd: sorry about the english
Hello I'm new in Qt and I want to draw points on a chart with a spline series, So far I reimplement the paint() function of QChart but it does nothing.
Please can anyone help me??
thank in advanced.
pd: sorry about the english
Last edited by Druid89; 9th November 2016 at 19:56.
Completely the wrong way to do it. Create a new QSplineSeries, add your control points to it (QXYSeries::append()), and then add that to the QChart instance using QChart::addSeries(). *You* do not need to derive from QChart, QSplineSeries, or anything else, and you do not need to paint anything yourself. QChart and QSplineSeries do all of that for you.So far I reimplement the paint() function of QChart but it does nothing.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Thanks for the help, you save me!!!
Bookmarks