Two instances of QT GUI Sink in a single program

Is it possible to put two QT GUI Sinks (FFT displays) in a single
application window? I want to use one to show the radio spectrum
(to/from
UHD) and another to show the audio spectrum, at the same time.

When I put two QT GUI Sink blocks in a GRC graph, I see only one of them
in
the application windows, unlike QT GUI Entries and other GUI elements
that
can have many instances in the same window.

Thanks, Sivan T.

On Thu, Aug 25, 2011 at 4:41 AM, Sivan T. [email protected]
wrote:

Is it possible to put two QT GUI Sinks (FFT displays) in a single
application window? I want to use one to show the radio spectrum (to/from
UHD) and another to show the audio spectrum, at the same time.

When I put two QT GUI Sink blocks in a GRC graph, I see only one of them in
the application windows, unlike QT GUI Entries and other GUI elements that
can have many instances in the same window.

Thanks, Sivan T.

You can definitely have more than one QT GUI blocks in a program. It’s
probably an initialization problem that’s going wrong in your code.
You can see multiple QT GUI’s used in
gnuradio-examples/python/digital/benchmark_qt_loopback.py.

Also, gnuradio-companion now works with QT GUI (set in the Options
block), and it handles multiple QT GUI blocks. You could create
something there, build the flow graph, and then see how the QT GUI
objects are manipulated to make sure they all get shown properly.

Tom

Thanks Tom. I guess I did not make myself clear. I do have several QT
GUI blocks in the program, which I indeed generate using GRC. I have
many sliders, a checkbox, and a sink (FFT). If I add a slider, I see
it on the screen when I run the new program. When when I add a sink
block, there is still only one FFT display, showing the results from
one of the FFT blocks. The problem is only with the QT Sink block, not
with all the QT blocks.

Sivan
The attached .grc file has TWO QT-GUI sinks, and they are both
displayed. Now, I have to grow the window in order to see them both,
since
they each take up a fair amount of real-estate.

Thanks Tom. I guess I did not make myself clear. I do have several QT
GUI
blocks in the program, which I indeed generate using GRC. I have many
sliders, a checkbox, and a sink (FFT). If I add a slider, I see it on
the
screen when I run the new program. When when I add a sink block, there
is
still only one FFT display, showing the results from one of the FFT
blocks.
The problem is only with the QT Sink block, not with all the QT blocks.

Sivan

On Sun, Aug 28, 2011 at 7:15 AM, Sivan T. [email protected]
wrote:

Thanks Tom. I guess I did not make myself clear. I do have several QT GUI
blocks in the program, which I indeed generate using GRC. I have many
sliders, a checkbox, and a sink (FFT). If I add a slider, I see it on the
screen when I run the new program. When when I add a sink block, there is
still only one FFT display, showing the results from one of the FFT blocks.
The problem is only with the QT Sink block, not with all the QT blocks.

Sivan

When you create more than one GT GUI window, they get stacked
vertically. It’s likely that one is just off screen. Look into using
the QT GUI Tab Widget to be able to tab between windows. It helps
clean up the desktop.

Tom