Hello,
I would like to know if there a way to know the coordinates pointed by the mouse.
The mousePress signal only enables to get the coordinates in the widget, and not in the graph.
Thanks !
Mathias
Hello,
I would like to know if there a way to know the coordinates pointed by the mouse.
The mousePress signal only enables to get the coordinates in the widget, and not in the graph.
Thanks !
Mathias
Sorry, i asked my question too fast, this does the job very well :
void SolitonParameterCurves::movePoint(QMouseEvent *e) { float x = this->xAxis->pixelToCoord(e->pos().x()); float y = this->yAxis->pixelToCoord(e->pos().y()); }
Mathias