discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] gr_qtgui, SWIG. QT Signals and such


From: Mike Cornelius
Subject: [Discuss-gnuradio] gr_qtgui, SWIG. QT Signals and such
Date: Mon, 3 Jan 2011 18:53:26 +1100

Hi All,

I've been playing around with gr_qtgui and adding a few 'enhancements' to
suit my application, in doing so I've come to a bit of sticking point and
I'm looking for some advice on how to proceed, my QT and SWIG experience are
limited so I'm wary of doing things 'the hard way' unnecessarily.

One of the things I'd like to add is support for QT Signals from my derived
'gr_qtgui2' back to Python, in particular I'd like to be able to double
click in the gr_qtgui plot area and receive a QT signal in my Python app.

Questions:-

1 - It appears to me that SWIG does not support QT signals/slots, can anyone
confirm if that's correct?
2 - If so then I suppose I need to convert my 'gr_qtgui2' over to use SIP ?
or is there an easier way?




In case anyone's interested I've made the following 'enhancements' so far:-

- Created a copy of gr_gtgui imaginatively called gr_qtgui2 which 'builds
out of tree' as a custom block.
- Removed the QT UI form so that the widget consists of just the plot area
and labels without the tabs and controls, this allows the widget to resize
nicely within the parent form and makes it more practical to have more than
1 gr_qtgui2 plot displayed simultaneously.
- Added interfaces to set the BG and FG colour
- Added a 'use_rf_frequencies' interface
- Added a center frequency marker and interface
- Changed zoomer to use drag select rather than click select
- Added y axis (amplitude) magnification on mouse wheel
- Added support in the plot area for catching double clicks and emitting a
signal (which I can't work out how to receive in Python)

See http://yfrog.com/f/h8a0xp for an idea of where I'm heading with this.

Any advice would be greatly appreciated.

Mike VK2XMC

        






reply via email to

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