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:23:32 +0000

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]