Hi Everyone,

I have an application of Oscilloscope where I have 2 vertical and 2 Horizontal lines,
This lines can be drag and drop either vertically or horizontally.
I have used QwtPlotMarker to plot lines and QwtPlotPicker to pick the line and on mouseRelease event drop the line.

Now everything is working fine, but I want to set boundary for this lines to move. As this lines should not move outside of the widget.
Any idea how I can do that ?

For reference please check the below post where I mention my logic implementation for dragging and dropping the line
https://www.qtcentre.org/threads/699...ecting-zooming

Thanks in advance