|
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 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:
|
[Prev in Thread] | Current Thread | [Next in Thread] |