Hi.

Can U expain what is QwtPlotOverlay and how it using for example with QwtPlotMarker.... There is no clear how to do this from ItemEditor example...

So I have plot, I have 1 QwtPlotMarker that is VLine , and for example 3 QwtPlotMarker that is Labels with text, and I have 3 QwtPlotCurve for each QwtPlotMarker...

So I want that on plot will show 3 QwtPlotCurve and QwtPlotMarkers will show with help on QwtPlotOverllay ( this I need to do because I need that when I move my QwtPlotMarker that is VLine ( posititin of this VLine = pos.x() getting from mouse coordinates).

As I understand for this task there is good to use QwtPlotOverllay, but how I need to use this in my task?

In example is function:
Qt Code:
  1. bool Editor::moved( const QPoint& pos ) {
  2. ....
  3. d_editedItem->setShape( d_editedItem->shape().translated( p2 - p1 ) );
  4. }
To copy to clipboard, switch view to plain text mode 
So as I think in generall all that i need to do is to use instead QwtPlotShapeItem* d_editedItem; - smth like QwtPlotMarjer ..., and in function that i show above do smth like d_editedItem->setValue(....) ?