Measurement "cursors"
Brought to you by:
rathmann
|
From: Murphy, S. <sm...@wa...> - 2019-09-13 19:30:27
|
I'm trying to figure out what class(es) I need to use to implement the following on a QwtPlot: 1. I want two vertical "cursors" on a plot. At minimum it just needs to be a vertical line. I think it could just be a QwtPlotMarker, but not sure if that works for the remaining requirements 2. User can click and drag on a cursor to move it horizontally. When user releases the mouse button, the cursor remains at that released position 3. Ideally, cursors emit their position as they are being moved. I really just need the x() portion of that position, but it's fine if it emits a QPoint/QPointF, I can always disregard the y() component Requirement 2 is the part I haven't figured out yet - how do I allow the user to grab a plot item to move it? I think maybe for that I want to look at QwtPicker? The idea behind this is setting up measurement bars like an oscilloscope would have allowing the user to make measurements between the two different points on all the displayed curves. Sean This message has been scanned for malware by Forcepoint. www.forcepoint.com |