|
From: | Matthew Curlis |
Subject: | Re: [Discuss-gnuradio] Disable zooming on QT plotting widgets |
Date: | Thu, 16 Mar 2017 13:02:41 +1100 |
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.ccd_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!
[Prev in Thread] | Current Thread | [Next in Thread] |