discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Disable zooming on QT plotting widgets


From: Kartik Patel
Subject: Re: [Discuss-gnuradio] Disable zooming on QT plotting widgets
Date: Wed, 15 Mar 2017 10:29:10 +0000

Dear Matthew,

To make this more robust, we can modify the Zoomer such that there is no mouse button that can zoom the plot. So, change the same line to this:

    d_zoomer->setMousePattern(QwtEventPattern::MouseSelect1,
                            Qt::NoButton);

I think this should solve the problem. 

Regards,
Kartik Patel



On Wed, Mar 15, 2017 3:53 PM, Kartik Patel address@hidden wrote:
Dear Matthew,

Since, you do not have a right click, you can modify the zoomer such that "Shift+Right Click" will zoom the plot. So, basically add following line at Line 147 in TimeDomainDisplayPlot.cc

  d_zoomer->setMousePattern(QwtEventPattern::MouseSelect1,
                            Qt::RightButton, Qt::ShiftModifier);

You can similarly change other display plots according to your requirement.

Let me know if this solves your problem.

Regards,
Kartik Patel



On Wed, Mar 15, 2017 7:32 AM, Matthew Curlis address@hidden wrote:
I am developing an embedded device that uses the frequency and waterfall QT plot widgets. Problem is my platform has a touchscreen without a right mouse button implemented - so I can zoom in but not zoom back out. I would just like to disable the zoom behaviour entirely. 

Can someone familiar with the QT stuff please guide me where to change the mouse behaviour? I have tried commenting out some lines in various files in /gr-qtgui and recompiling with no success.

Thanks!

reply via email to

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