You should also have a look the itemeditor example - it is about shape items, but the general idea of how to implement such an editor ( using a QwtWidgetOverly ) is similar. You could also have a look at QwtPlotPicker ( also using a widget overlay for the rubberband ), where you can create polygons interactively. In opposite the implementation of the spline editor does replots while moving a point - what of course is much easier to implement , but might be too slow for plots with more content.
I have implemented several graphical editors using the widget overlay approach myself - unfortunately those are too specific to make an example that would help more than the itemeditor one. So if you have a good specification for an editor in combination with curves, that could qualify for a demo, let me know.
Uwe




Reply With Quote

Bookmarks