Hello,
I'm posting the proper procedure to get the cursor position inside the canvas.
Code:
canvas()->installEventFilter( this ); // sometimes qobject_cast<QwtPlotCanvas*>(canvas()) might me needed { { X = mouseEvent->pos().x;
Printable View
Hello,
I'm posting the proper procedure to get the cursor position inside the canvas.
Code:
canvas()->installEventFilter( this ); // sometimes qobject_cast<QwtPlotCanvas*>(canvas()) might me needed { { X = mouseEvent->pos().x;