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:
QwtPlotItemList qwtItmList = QwtPlotWidget->itemList();
for(int i = 0; i < qwtItmList.size(); i++){
QString prop
= qwtItmList
[i
].
MyProperty();
if (prop == "good){
...
} else if (prop == "good) {
...
}
}
QwtPlotItemList qwtItmList = QwtPlotWidget->itemList();
for(int i = 0; i < qwtItmList.size(); i++){
QString prop = qwtItmList[i].MyProperty();
if (prop == "good){
...
} else if (prop == "good) {
...
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks