Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

using QScatter in QGraphics gui



  • is it possible to plot the scatter plots that was used to get the line of regression for gui?
    series0=new QScatterSeries();
    series0->setName("scatter1");
    series0->setMarkerShape(QScatterSeries::MarkerShapeCircle);
    series0->setMarkerSize(12.0);

    for (int i=0; i<xcolumn.size();i++){
    series0->append(x_pix2dataxcolumn[i],-1y_pix2data*ycolumn[i]);
    }

    i created this to store the scatter plots but i cant add it to graphics view using scene->addItem(series0).
    HELP PLEASE


  • Lifetime Qt Champion

    Hi,

    Why don't you add that series to a chart ?


Log in to reply