discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Adding An Image File In GRC


From: Timothy Coyle
Subject: Re: [Discuss-gnuradio] Adding An Image File In GRC
Date: Thu, 16 Mar 2017 20:20:43 +0000

Hi Marcus,

I already got the Qt Label to show an image by editing the python file that GRC creates. The problem is that if I want to use GRC “interactively” to change parameters/settings/etc. that’s not available in the GUI I create then the python file is overwritten by GRC. So I was just wondering if there was a way inside of GNU Radio to use the Qt Label widget to display an image file. Thinking about it may be I could use an embedded python block or module – I’ll have to look into that.

 

Thanks,

 

Tim

 

From: Discuss-gnuradio [mailto:discuss-gnuradio-bounces+address@hidden On Behalf Of Marcus Müller
Sent: Thursday, March 16, 2017 2:26 PM
To: address@hidden
Subject: Re: [Discuss-gnuradio] Adding An Image File In GRC

 

Hi Timothy,

hm, basically, all the Qt GUI things are really Qt QWidgets and subclasses. The python file generated by GRC sets up the window and stuff. I think the quickest way of understanding how this all works together is making a small Qt-GUI-based flow graph, and diff'ing the python code before and after you add a Qt Label. You might be able to add a picture label just the same way.

If you haven't noticed these before: you can basically configure a grid layout by filing the "gui hint" field in the Qt GUI blocks with "row,col,rowspan,colspan", where rows and columns start with 0.

Best regards,

Marcus

 

On 03/16/2017 02:46 PM, Timothy Coyle wrote:

Hi,

I am using GRC to create a flow graph that has a GUI and I’m looking for a way to add an image (a logo) to the GUI. Is there a way to use one of the Qt GUI widgets to add an image file? I know I can edit the python file created by GRC and add image file where I want but I think if I’m using GRC to make changes it will overwrite my modifications to the python file.

 

Thanks,

 

Timothy Coyle

Staff Engineer

Environetix Technologies

 

20 Godfrey Drive

Orono, ME  04473

 

Office: (207) 866-6551

Cell: (207)844-0951

 

www.environetix.com

 




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

 


reply via email to

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