Thu 02 Apr 2015 11:12:47 AM UTC, comment #13:
Works great indeed. Many thanks!
|
Wed 01 Apr 2015 08:23:07 PM UTC, comment #12:
Verified. Works great. Closing report.
|
Wed 01 Apr 2015 07:17:25 PM UTC, comment #11:
Pushed http://hg.savannah.gnu.org/hgweb/octave/rev/f2dea119369e
|
Wed 01 Apr 2015 06:38:01 PM UTC, comment #10:
This appears to fix it for the Qt issue.
(file #33506)
|
Tue 31 Mar 2015 06:38:47 PM UTC, comment #9:
I confirm it works fine with FLTK now. Thanks!
|
Tue 31 Mar 2015 06:20:14 PM UTC, comment #8:
I fixed the two FLTK issues with this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/91e2212b060d).
|
Tue 31 Mar 2015 06:05:46 PM UTC, comment #7:
The first problem, Qt double-clicks, seems relatively straightforward although there could be a lot of code duplication. In Canvas.cc there is a routine for handling single clicks.
And further on in this code there is
And the prototype for figureSelectionType in QtHandlesUtils.cc is
so it is the false in the function call that needs to be true for dobule-clicks.
Back in Canvas.cc there is a routine for double-clicks.
But it is missing most of the code from the single-click routine, including the setting of figureSelectionType.
|
Tue 31 Mar 2015 05:21:42 PM UTC, comment #6:
Summarizing three different problems:
1) Qt double-clicks
When using Qt toolkit no double-click events are reported. This is because the code itself in Canvas.cc is not processing MouseDoubleClickEvent.
2) FLTK incorrect middle button reporting
When using FLTK, the middle mouse button is reported as "normal" instead of "extend".
3) FLTK incorrect double-right click reporting
When using FLTK, a double-right click should produce "alt" followed by "open".
|
Tue 31 Mar 2015 04:34:30 PM UTC, comment #5:
For Qt, Canvas.cc posts window and buttondown fcn events for MousePressEvent, It doesn't post anything for MouseDoubleClickEvent.
|
Tue 31 Mar 2015 03:42:54 PM UTC, comment #4:
Weirdly enough, it's still not behaving as expecting with FLTK for me (in a different way than with Qt):
- middle-click returns 'normal'
- double-right-click returns 'alt', 'alt'
e.g. if I do left, middle, right, double-left, double-middle, double-right, I get:
|
Tue 31 Mar 2015 03:30:13 PM UTC, comment #3:
Two independent confirmations that this is a Qt-only bug. Since Qt is now the default it would be nice to understand why this is happening.
|
Tue 31 Mar 2015 02:53:32 PM UTC, comment #2:
This works for me in 4.0-rc1 with FLTK
|
Mon 30 Mar 2015 03:43:50 PM UTC, comment #1:
Confirmed. Also, when using the FLTK toolkit (also OpenGL) it does work.
So, this is something with how the interaction with the Windowing system (Qt or FLTK) is coded rather than OpenGL generally.
|
Mon 30 Mar 2015 02:32:19 PM UTC, original submission:
A double-click triggers a single event of type "normal" in the following setting:
while in MATLAB it triggers two succesive events, one "normal" and one "open".
|