All,

Ive successfully integrated the QPolarPlot into my application, however im only able to add data at the object creation. I have a database that im successfully pulling plotted data from, that is working (via qDebug i can see that data), however when i try to add points to the plot, they dont show up..

code used to create the chart..

Qt Code:
  1. const qreal angularMin = 0;
  2. const qreal angularMax = 360;
  3.  
  4. const qreal radialMin = 0;
  5. const qreal radialMax = 100;
  6.  
  7. sat_plot = new QScatterSeries();
  8. sat_plot->setColor(QColor(Qt::blue));
  9. sat_plot->setName("scatter");
  10. sat_plot->setMarkerSize(10);
  11. //sat_plot->append(20, 300); //<--- i can add these plots here, but not later in other function...
  12. //sat_plot->append(40, 100);
  13. //sat_plot->append(50, 0);
  14.  
  15. QPolarChart *sat_chart = new QPolarChart();
  16. sat_chart->addSeries(sat_plot);
  17.  
  18. qreal polar_w = 1000;
  19. qreal polar_h = 1000;
  20. sat_chart->setPreferredSize(polar_h,polar_h);
  21.  
  22. QValueAxis *angularAxis = new QValueAxis();
  23. angularAxis->setTickCount(17);
  24. angularAxis->setLabelFormat("%d");
  25. angularAxis->setShadesVisible(true);
  26.  
  27. QFont axFont("Helvetica [Cronyx]", 8);
  28. angularAxis->setLabelsFont(axFont);
  29. angularAxis->setShadesBrush(QBrush(QColor(249, 249, 255)));
  30. sat_chart->addAxis(angularAxis, QPolarChart::PolarOrientationAngular);
  31. sat_chart->setMargins(QMargins::QMargins(0,0,0,0));
  32. sat_chart->legend()->setVisible(false);
  33.  
  34. QValueAxis *radialAxis = new QValueAxis();
  35. radialAxis->setTickCount(10);
  36. radialAxis->setLabelFormat("");
  37. sat_chart->addAxis(radialAxis, QPolarChart::PolarOrientationRadial);
  38.  
  39. radialAxis->setRange(radialMin, radialMax);
  40. angularAxis->setRange(angularMin, angularMax);
  41.  
  42. QChartView *chartView = new QtCharts::QChartView();
  43. chartView->setChart(sat_chart);
  44. chartView->setRenderHint(QPainter::Antialiasing);
To copy to clipboard, switch view to plain text mode 

I tried to use both
Qt Code:
  1. sat_plot->append(100,56);
To copy to clipboard, switch view to plain text mode 
and

Qt Code:
  1. QPoint p(23,43);
  2. sat_plot->insert(0,P)
To copy to clipboard, switch view to plain text mode 

I know i'm able to access the object from another function, because i can call
Qt Code:
  1. sat_plot->clear();
To copy to clipboard, switch view to plain text mode 
and it clears the chart, also i can see that i am actually adding points to the chart with
Qt Code:
  1. sat_plot->points().size();
To copy to clipboard, switch view to plain text mode 
in qDebug which is incrementing.. i also checked
Qt Code:
  1. sat_plot->pointsVisible();
To copy to clipboard, switch view to plain text mode 
and it is true..

any ideas?