Hi,

I'm trying to find a way to set some kind of a property for a plotted item where I could keep information about the item.
For example I plot 10 curves. 7 of them should be signed as "good", and the 3 rest should be "bad". So this would allow me to sort these 10 items after getting them from QwtPlot widget like:
Qt Code:
  1. QwtPlotItemList qwtItmList = QwtPlotWidget->itemList();
  2. for(int i = 0; i < qwtItmList.size(); i++){
  3. QString prop = qwtItmList[i].MyProperty();
  4. if (prop == "good){
  5. ...
  6. } else if (prop == "good) {
  7. ...
  8. }
  9. }
To copy to clipboard, switch view to plain text mode