discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] constellation plot in c++ using qtgui


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] constellation plot in c++ using qtgui
Date: Tue, 6 May 2014 11:04:42 -0400

On Tue, May 6, 2014 at 11:00 AM, Tom Rondeau <address@hidden> wrote:
On Tue, May 6, 2014 at 10:29 AM, Mostafa Alizadeh <address@hidden> wrote:
hello everybody, 

I wanted to use constellation plot of gnuradio in my top block in c++. I actually use qtcreator in ubuntu and gnuradio 3.7.3. After I found out that I must add "-lgnuradio-qtgui" to the .pro file of qtcreator for using qtgui of gnuradio, I ran the program but it didn't open any GUI!!! 

my code is like this : 

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
#include <gnuradio/qtgui/const_sink_c.h>

#include <QtGui/QApplication>
#include <qapplication.h>
#include <QWidget>

using namespace gr; 

int main() 

      // some blocks here .... 

     qtgui::const_sink_c::sptr constellation = qtgui::const_sink_c::make(10, "constellation", 1, NULL); 
            
      // some connections .... 

      tb->run(); 

      return 0; 


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 

What is the problem!? Why I can't see any GUI? 


best 


You haven't don't anything to get the qApplication and start it.

Tom

You haven't "done" anything to get the qApplication and start it.

Tom
 


reply via email to

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