#1367 Left mouse button doesn't release with QT terminal

closed-fixed
nobody
None
5
2015-03-23
2014-04-02
No

When using the QT terminal, it is not possible to stop rotating the plot (created with splot), after using the left mouse button.

With the X11 terminal everything works correctly, i.e. the plot can be rotated only while the left mouse button is pressed. However, with the QT terminal, it is as if the left mouse button is never released, and no other mouse operations can then be done (e.g. zoom). And worse, it is not possible to reach the "Save"-menu without rotating the plot...

$ gnuplot --version
gnuplot 4.6 patchlevel 5

which I built using

$ gcc --version
gcc (GCC) 4.8.3 20140320 (prerelease)

Otherwise:

QT 4.6.2 on Redhat Enterprise Linux 6.5

For completeness, here is my plot shell script:

*************************************
#!/bin/sh
set -o errexit -o nounset

FILE="$1"

gnuplot << END

set terminal qt
#set terminal x11

set key off

splot "$FILE" matrix with lines

pause mouse button3

END
***************************************

where the file argument is a simple file containing the test data:

0 0 0 0 0
0 1 1 1 0
0 1 2 1 0
0 1 1 1 0
0 0 0 0 0

Discussion

  • Torquil Macdonald Sørensen

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -16,25 +16,25 @@
    
     For completeness, here is my plot shell script:
    
    -*************************************
    -#!/bin/sh
    -set -o errexit -o nounset
    -
    -FILE="$1"
    -
    -gnuplot << END
    -
    -set terminal qt
    -#set terminal x11
    -
    -set key off
    -
    -splot "$FILE" matrix with lines
    -
    -pause mouse button3
    -
    -END
    -***************************************
    +    *************************************
    +    #!/bin/sh
    +    set -o errexit -o nounset
    +    
    +    FILE="$1"
    +    
    +    gnuplot << END
    +    
    +    set terminal qt
    +    #set terminal x11
    +    
    +    set key off
    +    
    +    splot "$FILE" matrix with lines
    +    
    +    pause mouse button3
    +    
    +    END
    +    ***************************************
    
     where the file argument is a simple file containing the test data:
    
     
  • Ethan Merritt

    Ethan Merritt - 2014-04-02

    I have seen this occasionally. For me the continuous response to the mouse is accompanied by an icon change and it is terminatd by the first subsequent mouse click.

    I have always interpreted this as a false triggering of the window manager's "gesture" mode rather than anything to do with qt or gnuplot per se. I get the same things sometimes with mousing in the chrome browser or the okular document viewer.

    The Qt environment does have its own "gesture management" component, however, so possibly there is a call that gnuplot could make into it to request disabling or down-weighting detection of the continuous mousing gesture. Your version of Qt is older than anything I've ever worked with, so that may be playing into it also.

     
  • Ethan Merritt

    Ethan Merritt - 2014-07-01

    Fixed in CVS for 4.6
    (wasn't a problem in 5.0)

     
  • Ethan Merritt

    Ethan Merritt - 2014-07-01
    • status: open --> closed-fixed
     
  • Sřren Holm

    Sřren Holm - 2014-10-23

    Thanks - that was quick.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks