Use the raster sink :)

On Thu, Mar 16, 2017 at 5:22 PM Marcus Müller <marcus.muel...@ettus.com>
wrote:

> Find the .xml file that describes the Qt label GRC block – it's very
> likely in gnuradio/gr-qtgui/grc – copy and modify it to your needs :) That
> way, you can have your own "image label". GNU Radio as project certainly
> wouldn't mind getting that new XML file as addition, neither :)
> Best regards,
> Marcus
>
>
> On 16.03.2017 21:20, Timothy Coyle wrote:
>
> 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+tcoyle=environetix....@gnu.org
> <discuss-gnuradio-bounces+tcoyle=environetix....@gnu.org>] *On Behalf Of 
> *Marcus
> Müller
> *Sent:* Thursday, March 16, 2017 2:26 PM
> *To:* discuss-gnuradio@gnu.org
> *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 <(207)%20844-0951>
>
>
>
> www.environetix.com
>
>
>
>
>
>
> _______________________________________________
>
> Discuss-gnuradio mailing list
>
> Discuss-gnuradio@gnu.org
>
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
-- 
Very Respectfully,

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

Reply via email to