When a point on a curve selected is too close to the edge above or below, the marker is no longer visible.
How to detect this situation to change the alignment of AlignBottom to AlignTop and vice versa ?
When a point on a curve selected is too close to the edge above or below, the marker is no longer visible.
How to detect this situation to change the alignment of AlignBottom to AlignTop and vice versa ?
Derive from QwtPlotMarker and reimplement YourPlotMarker::scaleDivChanged. You probably might also have to implement an event filter for the plot canvas, where you handle resize events.
Uwe
Indeed, it's QwtPlotItem::updateScaleDiv.
Uwe
Bookmarks