[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/
- [Octave-bug-tracker] [bug #45540] graphics_toolkit('qt') segfaults on plot(1:100), Michael Godfrey, 2015/07/13
- [Octave-bug-tracker] [bug #45540] graphics_toolkit('qt') segfaults on plot(1:100), Doug Stewart, 2015/07/13
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Pantxo Diribarne, 2015/07/16
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Philip Nienhuis, 2015/07/17
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Michael Godfrey, 2015/07/18
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Dan Sebald, 2015/07/24
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Michael Godfrey, 2015/07/24
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Dan Sebald, 2015/07/24
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Pantxo Diribarne, 2015/07/25
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Michael Godfrey, 2015/07/25
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Dan Sebald, 2015/07/25
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Pantxo Diribarne, 2015/07/26
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Pantxo Diribarne, 2015/07/26
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Dan Sebald, 2015/07/27
- [Octave-bug-tracker] [bug #45540] Segfault when moving the mouse over Qt figures, Pantxo Diribarne, 2015/07/27