octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures
Date: Fri, 24 Jul 2015 11:23:48 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0

Follow-up Comment #7, bug #45540 (project octave):

In order to display the cursor coordinates, I needed to know what axes was
hovered. I used the object selection mechanism that was already in place in
Qt. 
The routine (selectFromAxes) is called extensively (each time a mouse movement
is detected over the canvas by Qt) and involves switching to Select mode,
drawing fake objects, switching to Render mode and then redrawing the canvas.
This is probably overkill since we only need to know the axes that is hovered,
not the objects it contains.

I don't know how it is done in fltk but a much simpler method would be:
retrieving the position of all axes in the figure, transforming those in pixel
units and comparing with current mouse event coordinates.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45540>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]