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 [email protected]  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 [email protected]  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!
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to