Hello,

I get the following error in debug mode
No source available for "QwtPlotDict::attachItem() "
Can you explain to me what is the reason for this?

The code part which causes this error is below:
Qt Code:
  1. if(i > (list_of_markers.size() - 1)){ // if the size of plotted markers is less than the size of population, then create and plot further markers
  2.  
  3. // create PlotMarkers to visualize the individuals
  4. QwtSymbol *symb = new QwtSymbol();
  5. symb->setBrush(QBrush(Qt::red, Qt::SolidPattern)); // red, solid color
  6. symb->setStyle(QwtSymbol::Ellipse); // it will be a circle
  7. symb->setSize(5,5);
  8. mark->setSymbol(*symb);
  9. mark->setXValue(xCoord); // set the position of marker on the plot
  10. mark->setYValue(yCoord);
  11. char idx[5];
  12. sprintf(idx,"%d", i);
  13. mark->setTitle(idx); // set title to the marker, which afterwards helps to indicate the certain individual
  14. //mark->setLabel(QwtText(idx));
  15. mark->attach(d_plot); // <<<<<<<<<< HERE occurs the error!!!
  16.  
  17. // insert the new created marker into the marker list
  18. list_of_markers.push_back(mark);
  19.  
  20. count_of_drawn++;
  21. }
To copy to clipboard, switch view to plain text mode