[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] QT graphical sink: how set dimension?
From: |
Vitt Benv |
Subject: |
Re: [Discuss-gnuradio] QT graphical sink: how set dimension? |
Date: |
Thu, 31 Mar 2016 14:18:51 +0200 |
Tnx Marcus, you are right, I'm speaking about "graphical" properties.
I was aware about "GUI Hint" and I tried this but only to put widgets
in rows x columns positions.... but now I know about the subsequent
parameter: I'll test those.
Now I miss only Tabs as Notebook was used, but never mind, I'll try
another way!
About GRC I think it's a good "starting point" but then some extra
code does the job.
A useful feature in GRC could be to have some kind of protection on
added code between builds... if I recall right there was an IDE
(WxGlade... maybe...) who understood a simple tag as:
....
### PROTECTED CODE ###
... added code
###
....
so that in subsequent build that wasn't overwritten ( actually it
happened several times, sgrunt!).
Tnx again, ciao ^__^
Victor
2016-03-31 13:40 GMT+02:00 Marcus Müller <address@hidden>:
> Hi Victor,
>
> what specifically are you referring to when you say "dimension" of your
> graphical sinks; do you mean the "logical" size (in points of the FFT)
> or the "graphical" size (in pixels of the widget, or the window)?
>
> You can specify the heights of the widgets manually, but that would
> require you to interfere with Qt taking care of window layout (and is
> not a good idea most of the time); if possible, prefer to use a relative
> grid layout as explained below.
>
> The equivalent to WX' Notebook, there's the QT "GUI Hint" property. It's
> pretty awesome, if you want to have a grid kind of layout; its format is
>
> row,column, row_span, column_span
>
> So, if you want something like
>
> +-------+-------+
> | Time | Freq |
> | Plot | Plot |
> +-------+-------+
> | Slider |
> +---------------+
>
> The GUI hints would be
>
> time plot: 0,0, 1,1 (first (=0.) row, first column, one row high x one
> column wide)
> freq plot: 0,1, 1,1 (first row, second column, 1x1 )
> slider: 1,0,1,2 (second row, first column, 1 high x 2 wide)
>
> Generally, it's possible (though not directly from GRC without writing
> your own Python) to embed your Visualization into your own Qt
> Application; there's a few projects out there that do that, but I don't
> think we really have a best practice guide for that just yet :)
>
> Cheers,
> Marcus
> On 31.03.2016 12:45, Vitt Benv wrote:
>> Good morning,
>> I'm exploring QT graphical, to begin lo leave WX widget....
>> I'm looking for good infos about resizing / fix the dimensions of my
>> two graphical sinks ( frequency / spectrogram), Googled around but no
>> clear infos :-(
>> Moreover in WX there's a Notebook container, very useful with crowded
>> GUI.... there's an equivalent in QT?
>> Tnx in advance for any answer.
>>
>> Victor, I3VFJ
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- [Discuss-gnuradio] QT graphical sink: how set dimension?, Vitt Benv, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Marcus Müller, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?,
Vitt Benv <=
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Marcus Müller, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Marcus Müller, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Vitt Benv, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Vitt Benv, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Marcus Müller, 2016/03/31
- Re: [Discuss-gnuradio] QT graphical sink: how set dimension?, Vitt Benv, 2016/03/31