discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] How to display a Qt Waterfall in C++?


From: khalid.el-darymli
Subject: Re: [Discuss-gnuradio] How to display a Qt Waterfall in C++?
Date: Thu, 30 Jul 2015 10:45:17 -0230

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 <address@hidden>
Date: Thu, Jul 30, 2015 at 9:37 AM
Subject: How to display a Qt Waterfall in C++?
To: "address@hidden" <address@hidden>


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




reply via email to

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