Hi list,

FYI, I went through the documentation and I managed to get it to work :)
All what I need to do was to define a layout so that the waterfall widget
can be added to it.

Thanks,
khalid


---------- Forwarded message ----------
From: khalid.el-darymli <khalid.el-dary...@mun.ca>
Date: Thu, Jul 30, 2015 at 9:37 AM
Subject: How to display a Qt Waterfall in C++?
To: "Discuss-gnuradio@gnu.org" <discuss-gnuradio@gnu.org>


Hi,

I have a simple flowgraph comprised of two channels (UHD: USRP Source)
connected to two separate Qt GUI Waterfall sinks.

This works perfectly in Python/GRC. However, I would like to convert this
into C++.

Previously, I did conversions successfully for various other flow-graphs
without GUIs. However, in this case, although the 'exe' file compiles fine
and it runs fine without any errors, I can't get it to display the
Waterfall plot.

In my current C++ code, the UHD Source Block and the Waterfall Sink block
are constructed, set-up and properly connected  to each other. I thought
this will automatically allow the Waterfall graph to display but it doesn't.

Following the python code in [1], I tried in my C++ code the following line,
[1] http://gnuradio.squarespace.com/examples/tag/qtgui


QApplication app(argc, argv);


I am not expert in Qt, but I think this is a constructor call that creates
an QApplication instance to process the Waterfall data, right? Can you
please give me a hint on how should I go about handling/displaying the
Waterfall data from there?

Thanks in advance for your help.


Regards,
khalid
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to